|
|
@ -46,15 +46,15 @@ |
|
|
<if test="bo.isComplaint != null"> |
|
|
<if test="bo.isComplaint != null"> |
|
|
AND is_complaint = #{bo.isComplaint} |
|
|
AND is_complaint = #{bo.isComplaint} |
|
|
</if> |
|
|
</if> |
|
|
<if test="bo.enforce != null and bo.enforce == '0'">} |
|
|
<if test='bo.enforce != null and bo.enforce == "0"'> |
|
|
AND enforce_reason is null |
|
|
AND check_css is null |
|
|
</if> |
|
|
</if> |
|
|
<if test="bo.enforce != null and bo.enforce == '1'"> |
|
|
<if test='bo.enforce != null and bo.enforce == "1"'> |
|
|
AND enforce_reason is not null |
|
|
AND check_css is not null |
|
|
</if> |
|
|
|
|
|
<if test="bo.checkCss != null and bo.checkCss != ''"> |
|
|
|
|
|
AND check_css = #{bo.checkCss} |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<!-- <if test="bo.checkCss != null and bo.checkCss != ''">--> |
|
|
|
|
|
<!-- AND check_css = #{bo.checkCss}--> |
|
|
|
|
|
<!-- </if>--> |
|
|
<if test="bo.district != null and bo.district != ''"> |
|
|
<if test="bo.district != null and bo.district != ''"> |
|
|
AND (enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '区%') |
|
|
AND (enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '区%') |
|
|
OR enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '新区%')) |
|
|
OR enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '新区%')) |
|
|
@ -172,15 +172,15 @@ |
|
|
<if test="bo.isComplaint != null"> |
|
|
<if test="bo.isComplaint != null"> |
|
|
AND r2.is_complaint = #{bo.isComplaint} |
|
|
AND r2.is_complaint = #{bo.isComplaint} |
|
|
</if> |
|
|
</if> |
|
|
<if test="bo.enforce != null and bo.enforce == '0'">} |
|
|
<if test='bo.enforce != null and bo.enforce == "0"'> |
|
|
AND r2.enforce_reason is null |
|
|
AND r2.check_css is null |
|
|
</if> |
|
|
|
|
|
<if test="bo.enforce != null and bo.enforce == '1'"> |
|
|
|
|
|
AND r2.enforce_reason is not null |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
<if test="bo.checkCss != null and bo.checkCss != ''"> |
|
|
<if test='bo.enforce != null and bo.enforce == "1"'> |
|
|
AND r2.check_css = #{bo.checkCss} |
|
|
AND r2.check_css is not null |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<!-- <if test="bo.checkCss != null and bo.checkCss != ''">--> |
|
|
|
|
|
<!-- AND r2.check_css = #{bo.checkCss}--> |
|
|
|
|
|
<!-- </if>--> |
|
|
<if test="bo.district != null and bo.district != ''"> |
|
|
<if test="bo.district != null and bo.district != ''"> |
|
|
AND (r2.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '区%') |
|
|
AND (r2.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '区%') |
|
|
OR r2.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '新区%')) |
|
|
OR r2.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '新区%')) |
|
|
@ -271,15 +271,15 @@ |
|
|
<if test="bo.isComplaint != null"> |
|
|
<if test="bo.isComplaint != null"> |
|
|
AND r.is_complaint = #{bo.isComplaint} |
|
|
AND r.is_complaint = #{bo.isComplaint} |
|
|
</if> |
|
|
</if> |
|
|
<if test="bo.enforce != null and bo.enforce == '0'">} |
|
|
<if test='bo.enforce != null and bo.enforce == "0"'> |
|
|
AND r.enforce_reason is null |
|
|
AND r.check_css is null |
|
|
</if> |
|
|
</if> |
|
|
<if test="bo.enforce != null and bo.enforce == '1'"> |
|
|
<if test='bo.enforce != null and bo.enforce == "1"'> |
|
|
AND r.enforce_reason is not null |
|
|
AND r.check_css is not null |
|
|
</if> |
|
|
|
|
|
<if test="bo.checkCss != null and bo.checkCss != ''"> |
|
|
|
|
|
AND r.check_css = #{bo.checkCss} |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<!-- <if test="bo.checkCss != null and bo.checkCss != ''">--> |
|
|
|
|
|
<!-- AND r.check_css = #{bo.checkCss}--> |
|
|
|
|
|
<!-- </if>--> |
|
|
<if test="bo.district != null and bo.district != ''"> |
|
|
<if test="bo.district != null and bo.district != ''"> |
|
|
AND (r.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '区%') |
|
|
AND (r.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '区%') |
|
|
OR r.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '新区%')) |
|
|
OR r.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '新区%')) |
|
|
@ -420,15 +420,15 @@ |
|
|
<if test="bo.isComplaint != null"> |
|
|
<if test="bo.isComplaint != null"> |
|
|
AND er.is_complaint = #{bo.isComplaint} |
|
|
AND er.is_complaint = #{bo.isComplaint} |
|
|
</if> |
|
|
</if> |
|
|
<if test="bo.enforce != null and bo.enforce == '0'"> |
|
|
<if test='bo.enforce != null and bo.enforce == "0"'> |
|
|
AND er.enforce_reason is null |
|
|
AND er.check_css is null |
|
|
</if> |
|
|
|
|
|
<if test="bo.enforce != null and bo.enforce == '1'"> |
|
|
|
|
|
AND er.enforce_reason is not null |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
<if test="bo.checkCss != null and bo.checkCss != ''"> |
|
|
<if test='bo.enforce != null and bo.enforce == "1"'> |
|
|
AND er.check_css = #{bo.checkCss} |
|
|
AND er.check_css is not null |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<!-- <if test="bo.checkCss != null and bo.checkCss != ''">--> |
|
|
|
|
|
<!-- AND er.check_css = #{bo.checkCss}--> |
|
|
|
|
|
<!-- </if>--> |
|
|
<if test="bo.district != null and bo.district != ''"> |
|
|
<if test="bo.district != null and bo.district != ''"> |
|
|
AND (er.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '区%') |
|
|
AND (er.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '区%') |
|
|
OR er.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '新区%')) |
|
|
OR er.enterprise_address LIKE CONCAT('深圳市', SUBSTRING_INDEX(#{bo.district}, '区', 1), '新区%')) |
|
|
|