diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/LawEnfOfficerMapper.xml b/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/LawEnfOfficerMapper.xml index 5014bf26..a7f16ccb 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/LawEnfOfficerMapper.xml +++ b/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/LawEnfOfficerMapper.xml @@ -89,10 +89,19 @@ t1.enterprise_name as enterpriseName, t1.law_enforcement_item_text as lawEnforcementItemText from enforcement_registration t1 + left join sys_user t2 on + t1.lawEnforcerId = t2.user_id + left join sys_dept t3 on + t2.dept_id = t3.dept_id + left join dashboard_area_info t4 on + t3.area_node = t4.code and t4.level = 3 and t1.law_enforcer_id=#{bo.lawEnforcerId} + + and t4.name like CONCAT('%', #{bo.districtName}, '%') + and DATE_FORMAT(t1.enforcement_time,'%Y-%m') = DATE_FORMAT(#{bo.enforcementTime},'%Y-%m')