Browse Source

监督端-执法人员修改

dev-V1.10.0^2
niujiyi 10 hours ago
parent
commit
75f472e898
  1. 9
      zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/LawEnfOfficerMapper.xml

9
zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/LawEnfOfficerMapper.xml

@ -89,10 +89,19 @@
t1.enterprise_name as enterpriseName, t1.enterprise_name as enterpriseName,
t1.law_enforcement_item_text as lawEnforcementItemText t1.law_enforcement_item_text as lawEnforcementItemText
from enforcement_registration t1 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
<where> <where>
<if test="bo.lawEnforcerId !=null and bo.lawEnforcerId!=''"> <if test="bo.lawEnforcerId !=null and bo.lawEnforcerId!=''">
and t1.law_enforcer_id=#{bo.lawEnforcerId} and t1.law_enforcer_id=#{bo.lawEnforcerId}
</if> </if>
<if test="bo.districtName!=null and bo.districtName !=''">
and t4.name like CONCAT('%', #{bo.districtName}, '%')
</if>
<if test="bo.enforcementTime!=null"> <if test="bo.enforcementTime!=null">
and DATE_FORMAT(t1.enforcement_time,'%Y-%m') = DATE_FORMAT(#{bo.enforcementTime},'%Y-%m') and DATE_FORMAT(t1.enforcement_time,'%Y-%m') = DATE_FORMAT(#{bo.enforcementTime},'%Y-%m')
</if> </if>

Loading…
Cancel
Save