Browse Source

涉企检查情况、部门信息情况、工作报表、执法分析、企业画像-检查记录、查询,统计时过滤保存状态的行政检查记录

v6
zouyx 1 year ago
parent
commit
4bb54af508
  1. 3
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComprehensiveAnalysisMapper.xml
  2. 1
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementCheckStatisticsMapper.xml
  3. 6
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementRegistrationMapper.xml
  4. 2
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/Zfryjdm2405301Mapper.xml

3
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComprehensiveAnalysisMapper.xml

@ -22,6 +22,7 @@
<where>
and r.enterprise_number is not null
and r.check_category is not null
and r.is_submit=1
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or
r.law_enforcer_id_two like concat('%',#{userId}, '%'))
</if>
@ -59,6 +60,7 @@
<where>
and r.enterprise_number is not null
and r.check_category is not null
and r.is_submit=1
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or
r.law_enforcer_id_two like concat('%',#{userId}, '%'))
</if>
@ -96,6 +98,7 @@
<where>
and r.enterprise_number is not null
and r.check_category is not null
and r.is_submit=1
<if test="userId != null and userId != '' ">and( r.law_enforcer_id=#{userId} or
r.law_enforcer_id_two like concat('%',#{userId}, '%'))
</if>

1
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementCheckStatisticsMapper.xml

@ -64,6 +64,7 @@
and e.is_complaint is not null
and e.check_category is not null
and e.bureau_dept_id is not null
and e.is_submit=1
<if test="qy != null and qy != ''">
and (i.enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '区%')or i.enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '新区%'))
<if test="jd != null and jd != ''">

6
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementRegistrationMapper.xml

@ -278,6 +278,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bureau_dept_id,bureau_dept_name,is_evaluate, law_id, law_text, count( enterprise_number ) AS num
from enforcement_registration
<where>
and is_submit=1
<if test="enterpriseId != null and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if>
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
<if test="enterpriseNumber != null and enterpriseNumber != ''"> and enterprise_number = #{enterpriseNumber}</if>
@ -361,6 +362,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectEnforcementRegistrationByEpId" parameterType="EnforcementRegistration" resultMap="EnforcementRegistrationResult">
<include refid="selectEnforcementRegistrationVo"/>
<where>
and is_submit=1
<if test="enterpriseId != null and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if>
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
<if test="enterpriseNumber != null and enterpriseNumber != ''"> and enterprise_number = #{enterpriseNumber}</if>
@ -433,6 +435,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and is_complaint is not null
and check_category is not null
and bureau_dept_id is not null
and is_submit=1
<if test="deptQx != null and deptQx != ''">and bureau_dept_id =#{deptQx}</if>
<if test="lawEnforcement != null and lawEnforcement != ''"> and law_enforcement like concat('%', #{lawEnforcement}, '%')</if>
<if test="bureauDeptName != null and bureauDeptName != ''"> and bureau_dept_name like concat('%', #{bureauDeptName}, '%')</if>
@ -507,6 +510,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and r.is_complaint is not null
and r.check_category is not null
and r.bureau_dept_id is not null
and is_submit=1
<if test="qy != null and qy != ''">
and (enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '区%')or enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '新区%'))
<if test="jd != null and jd != ''">
@ -972,6 +976,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and r.is_complaint is not null
and r.check_category is not null
and r.bureau_dept_id is not null
and r.is_submit=1
<if test="qy != null and qy != ''">
and (enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '区%')or enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '新区%'))
<if test="jd != null and jd != ''">
@ -1043,6 +1048,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and is_complaint is not null
and check_category is not null
and bureau_dept_id is not null
and is_submit=1
<if test="enterpriseName != null and enterpriseName != ''">
AND enterprise_name like concat(concat('%',#{enterpriseName}),'%')
</if>

2
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/Zfryjdm2405301Mapper.xml

@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectZfryjdmByDeptId" parameterType="Zfryjdm2405301" resultMap="ZfryjdmResult">
select name, zzjgdm, #{zfdw} as zfdw, sub_name, zfcode, sfzcode_encrypt,x.dept_id as deptId,phoneNumber as phoneNumber,ancestors as ancestors,
(select count(*) from enforcement_registration where law_enforcer_id=x.user_id or law_enforcer_id_two=x.user_id) as number from
(select count(*) from enforcement_registration where (law_enforcer_id=x.user_id or law_enforcer_id_two=x.user_id) and is_submit=1) as number from
(select* from
(select name, zzjgdm, zfdw, sub_name, zfcode, sfzcode_encrypt from zfryjdm2405301
<where>

Loading…
Cancel
Save