|
|
|
@ -138,7 +138,7 @@ |
|
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
|
</if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and r.unite_check is null</if> |
|
|
|
@ -191,7 +191,7 @@ |
|
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
|
</if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and r.unite_check is null</if> |
|
|
|
@ -244,7 +244,7 @@ |
|
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
|
</if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and r.unite_check is null</if> |
|
|
|
@ -783,7 +783,7 @@ |
|
|
|
<if test="uniteCheck == '1'.toString()"> and r.unite_check is null</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<!-- <if test="qy != null and qy != ''">--> |
|
|
|
<!-- and (e.enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '区%')or--> |
|
|
|
@ -895,7 +895,7 @@ |
|
|
|
<if test="uniteCheck == '1'.toString()"> and r.unite_check is null</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<!-- <if test="qy != null and qy != ''">--> |
|
|
|
<!-- and (e.enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '区%')or--> |
|
|
|
@ -957,7 +957,7 @@ |
|
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
|
</if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and r.unite_check is null</if> |
|
|
|
@ -1018,7 +1018,7 @@ |
|
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
|
</if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and r.unite_check is null</if> |
|
|
|
@ -1154,7 +1154,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<!-- <if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if>--> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<!-- <if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if>--> |
|
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
|
@ -1179,7 +1179,7 @@ |
|
|
|
and (r.union_no IS NOT NULL and r.union_no != '') |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
@ -1208,7 +1208,7 @@ |
|
|
|
and (r.union_no IS NOT NULL and r.union_no != '') |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
@ -1233,7 +1233,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<!-- <if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if>--> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<!-- <if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if>--> |
|
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
|
@ -1263,7 +1263,7 @@ |
|
|
|
and r.union_no IS NOT NULL and r.union_no != '' |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
|
@ -1294,7 +1294,7 @@ |
|
|
|
and (r.union_no IS NOT NULL and r.union_no != '') |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
@ -1329,7 +1329,7 @@ |
|
|
|
and (r.union_no IS NOT NULL and r.union_no != '') |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
@ -1364,7 +1364,7 @@ |
|
|
|
and (r.union_no is null or r.union_no = '') |
|
|
|
<if test="params.zone != null and params.zone != ''">and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
|
@ -1388,7 +1388,7 @@ |
|
|
|
and r.union_no is not null and r.union_no != '' |
|
|
|
<if test="params.zone != null and params.zone != ''">and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
|
@ -1416,7 +1416,7 @@ |
|
|
|
and (r.union_no is null or r.union_no = '') |
|
|
|
<if test="params.zone != null and params.zone != ''">and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
@ -1444,7 +1444,7 @@ |
|
|
|
and r.union_no is not null and r.union_no != '' |
|
|
|
<if test="params.zone != null and params.zone != ''">and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
@ -1476,7 +1476,7 @@ |
|
|
|
and (r.union_no is null or r.union_no = '') |
|
|
|
<if test="params.zone != null and params.zone != ''">and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
|
@ -1504,7 +1504,7 @@ |
|
|
|
and r.union_no is not null and r.union_no != '' |
|
|
|
<if test="params.zone != null and params.zone != ''">and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="(deptId != null and deptId != '') and (area == null or area == '')"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="area != null and area != ''"> and r.bureau_dept_name like concat('%', #{area}, '%')</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) </if> |
|
|
|
@ -1536,7 +1536,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%'))</if> |
|
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
|
@ -1562,7 +1562,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|
@ -1730,7 +1730,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|
@ -1758,7 +1758,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|
@ -1790,7 +1790,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|
@ -1820,7 +1820,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<!-- <if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if>--> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<!-- <if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%'))</if>--> |
|
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
|
@ -1869,7 +1869,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<!-- <if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if>--> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|
@ -1898,7 +1898,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<!-- <if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if>--> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<!-- <if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%'))</if>--> |
|
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
|
@ -1927,7 +1927,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<!-- <if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if>--> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|
@ -1956,7 +1956,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<!-- <if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if>--> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|
@ -1990,7 +1990,7 @@ |
|
|
|
and r.bureau_dept_id is not null |
|
|
|
<!-- <if test="params.zone != null and params.zone != ''"> and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if>--> |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) |
|
|
|
and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) |
|
|
|
</if> |
|
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|
|