| | |
| | | LEFT JOIN sys_district d ON d.id = s.district_id |
| | | WHERE |
| | | s.del_flag = 0 |
| | | <if test="query.siteName != null and query.siteName = ''"> |
| | | <if test="query.siteName != null and query.siteName != ''"> |
| | | and s.site_name like concat('%', #{query.siteName}, '%') |
| | | </if> |
| | | <if test="query.districtCode != null and query.districtCode = ''"> |
| | | <if test="query.districtCode != null and query.districtCode != ''"> |
| | | AND d.`code` LIKE concat(#{query.districtCode}, '%') |
| | | </if> |
| | | <if test="query.isCm != null and query.isCm = ''"> |
| | | <if test="query.isCm != null and query.isCm != ''"> |
| | | AND s.is_cm = #{query.isCm} |
| | | </if> |
| | | order by s.create_time desc |