This commit is contained in:
mashuai 2024-12-06 17:50:01 +08:00
parent 37fe84c944
commit 333edc69ab
1 changed files with 2 additions and 6 deletions

View File

@ -259,11 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="cityCode != null"> and m.city_code = #{cityCode}</if> <if test="cityCode != null"> and m.city_code = #{cityCode}</if>
<if test="keyWord != null and keyWord != ''"> <if test="keyWord != null and keyWord != ''">
and ( and (
locate(#{keyWord},mt1.type_name) > 0 locate(#{keyWord},m.lease_name) > 0
or locate(#{keyWord},mt2.type_name) > 0
or locate(#{keyWord},mt3.type_name) > 0
or locate(#{keyWord},mt4.type_name) > 0
or locate(#{keyWord},m.lease_name) > 0
) )
</if> </if>
GROUP BY m.lease_code GROUP BY m.lease_code
@ -395,6 +391,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_type mt3 ON mt3.type_id = mt4.parent_id and mt3.del_flag = '0' LEFT JOIN ma_type mt3 ON mt3.type_id = mt4.parent_id and mt3.del_flag = '0'
LEFT JOIN ma_type mt2 ON mt2.type_id = mt3.parent_id and mt2.del_flag = '0' LEFT JOIN ma_type mt2 ON mt2.type_id = mt3.parent_id and mt2.del_flag = '0'
LEFT JOIN ma_type mt1 ON mt1.type_id = mt2.parent_id and mt1.del_flag = '0' LEFT JOIN ma_type mt1 ON mt1.type_id = mt2.parent_id and mt1.del_flag = '0'
where lease_id = #{id} where m.lease_id = #{id}
</select> </select>
</mapper> </mapper>