@ -67,9 +67,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and zfcode is not null
<iftest="name != null and name != ''">and name like concat('%',#{name},'%')</if>
<iftest="zfcode != null and zfcode != ''">and zfcode like concat('%',#{zfcode},'%')</if>
</where>
group by sfzcode) z
left join (select dept_id,phoneNumber, certificateNumber from sys_user where law_certificate_num is not null and user_source = 0 and status='0' and del_flag='0' group by certificateNumber) u
</where>) z
left join (select dept_id,phoneNumber, certificateNumber from sys_user where law_certificate_num is not null and user_source = 0 and status='0' and del_flag='0') u
on z.sfzcode_encrypt=u.certificateNumber
group by z.sfzcode_encrypt)x
left join (select dept_id,ancestors,creditcode from sys_dept where status='0' and del_flag='0') d