This commit is contained in:
parent
37fe84c944
commit
333edc69ab
|
|
@ -259,11 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="cityCode != null"> and m.city_code = #{cityCode}</if>
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and (
|
||||
locate(#{keyWord},mt1.type_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
|
||||
locate(#{keyWord},m.lease_name) > 0
|
||||
)
|
||||
</if>
|
||||
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 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'
|
||||
where lease_id = #{id}
|
||||
where m.lease_id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue