|
|
@ -138,7 +138,7 @@ |
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="deptId != null and deptId != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</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> |
|
|
<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}) |
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="deptId != null and deptId != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</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> |
|
|
<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}) |
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="deptId != null and deptId != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</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> |
|
|
<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="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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<!-- <if test="qy != null and qy != ''">--> |
|
|
<!-- <if test="qy != null and qy != ''">--> |
|
|
<!-- and (e.enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '区%')or--> |
|
|
<!-- 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="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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<!-- <if test="qy != null and qy != ''">--> |
|
|
<!-- <if test="qy != null and qy != ''">--> |
|
|
<!-- and (e.enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '区%')or--> |
|
|
<!-- 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}) |
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="deptId != null and deptId != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</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> |
|
|
<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}) |
|
|
and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="deptId != null and deptId != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '0'.toString()"> and r.unite_check is not null</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> |
|
|
<if test="uniteCheck == '1'.toString()"> and r.unite_check is null</if> |
|
|
@ -1154,7 +1154,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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> |
|
|
<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 != '') |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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 != ''"> |
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
@ -1208,7 +1208,7 @@ |
|
|
and (r.union_no IS NOT NULL and r.union_no != '') |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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 != ''"> |
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
@ -1233,7 +1233,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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> |
|
|
<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 != '' |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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> |
|
|
<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 != '') |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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 != ''"> |
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
@ -1329,7 +1329,7 @@ |
|
|
and (r.union_no IS NOT NULL and r.union_no != '') |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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 != ''"> |
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
@ -1364,7 +1364,7 @@ |
|
|
and (r.union_no is null or r.union_no = '') |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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> |
|
|
<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 != '' |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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> |
|
|
<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 = '') |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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 != ''"> |
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
@ -1444,7 +1444,7 @@ |
|
|
and r.union_no is not null and r.union_no != '' |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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 != ''"> |
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
@ -1476,7 +1476,7 @@ |
|
|
and (r.union_no is null or r.union_no = '') |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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 != ''"> |
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
@ -1504,7 +1504,7 @@ |
|
|
and r.union_no is not null and r.union_no != '' |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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 != ''"> |
|
|
<if test="beginTime != null and beginTime != ''"> |
|
|
@ -1535,7 +1535,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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> |
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
@ -1561,7 +1561,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</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> |
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
@ -1729,7 +1729,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</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> |
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
@ -1757,7 +1757,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</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> |
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
@ -1789,7 +1789,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</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> |
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
@ -1819,7 +1819,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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> |
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
@ -1868,7 +1868,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</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> |
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
@ -1897,7 +1897,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</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="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> |
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
@ -1926,7 +1926,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is not null and r.union_no != '')</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> |
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
@ -1943,35 +1943,34 @@ |
|
|
|
|
|
|
|
|
<!-- 非行政检查类型统计 --> |
|
|
<!-- 非行政检查类型统计 --> |
|
|
<select id="analysis_non_registration_type" parameterType="SixAnalysisParams" resultType="map"> |
|
|
<select id="analysis_non_registration_type" parameterType="SixAnalysisParams" resultType="map"> |
|
|
select sdd.dict_label, count(nr.law_enforcement_type) as num from sys_dict_data sdd |
|
|
select sdd.dict_label, count(r.law_enforcement_type) as num from sys_dict_data sdd |
|
|
left join non_enforcement_registration nr on nr.law_enforcement_type = sdd.dict_value |
|
|
left join non_enforcement_registration r on r.law_enforcement_type = sdd.dict_value |
|
|
<where> |
|
|
<where> |
|
|
and sdd.dict_type = 'no_check_category' |
|
|
and sdd.dict_type = 'no_check_category' |
|
|
and nr.bureau_dept_name is not null |
|
|
and r.bureau_dept_id is not null |
|
|
and nr.dept_id is not null |
|
|
and r.law_enforcer_id is not null |
|
|
and nr.enterprise_name is not null |
|
|
and r.law_enforcer_id_other is not null |
|
|
and nr.enterprise_number is not null |
|
|
and r.enterprise_number is not null |
|
|
and nr.law_enforcer_id is not null |
|
|
and r.law_enforcement_type is not null |
|
|
and nr.law_enforcer_id_other is not null |
|
|
and r.bureau_dept_id is not null |
|
|
and nr.law_enforcement_type 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>--> |
|
|
and nr.bureau_dept_id is not null |
|
|
|
|
|
<if test="params.zone != null and params.zone != ''"> and nr.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) </if> |
|
|
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
<if test="deptId != null and deptId != ''"> |
|
|
and nr.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '0'.toString()"> and (nr.union_no is not null and nr.union_no != '')</if> |
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is not null and r.union_no != '')</if> |
|
|
<if test="uniteCheck == '1'.toString()"> and (nr.union_no is null or nr.union_no = '')</if> |
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
<if test="userId != null and userId != '' ">and( nr.law_enforcer_id=#{userId} or nr.law_enforcer_id_two=#{userId}) </if> |
|
|
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_other=#{userId}) </if> |
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(nr.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
<if test="beginTime != null and beginTime != ''"> and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') </if> |
|
|
<if test="endTime != null and endTime != ''"> and DATE_FORMAT(#{endTime},'%Y-%m-%d') >= DATE_FORMAT(nr.enforcement_time,'%Y-%m-%d') </if> |
|
|
<if test="endTime != null and endTime != ''"> and DATE_FORMAT(#{endTime},'%Y-%m-%d') >= DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') </if> |
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
<if test="params.dataScope != null and params.dataScope != ''"> |
|
|
<!-- 数据范围过滤 --> |
|
|
<!-- 数据范围过滤 --> |
|
|
${params.dataScope} |
|
|
${params.dataScope} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
group by nr.law_enforcement_type order by sdd.dict_sort asc |
|
|
group by r.law_enforcement_type |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 行政检查类型统计 --> |
|
|
<!-- 行政检查类型统计 --> |
|
|
<select id="analysis_registration_type" parameterType="SixAnalysisParams" resultType="map"> |
|
|
<select id="analysis_registration_type" parameterType="SixAnalysisParams" resultType="map"> |
|
|
select sdd.dict_label, count(r.check_category) as num from sys_dict_data sdd |
|
|
select sdd.dict_label, count(r.check_category) as num from sys_dict_data sdd |
|
|
@ -1990,7 +1989,7 @@ |
|
|
and r.bureau_dept_id is not null |
|
|
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="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 != ''"> |
|
|
<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}) |
|
|
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}) |
|
|
</if> |
|
|
</if> |
|
|
<if test="uniteCheck == '0'.toString()"> and (r.union_no is not null and r.union_no != '')</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> |
|
|
<if test="uniteCheck == '1'.toString()"> and (r.union_no is null or r.union_no = '')</if> |
|
|
|