|
@ -85,24 +85,24 @@ |
|
|
<where> |
|
|
<where> |
|
|
1=1 |
|
|
1=1 |
|
|
<if test='userId != "1"'> |
|
|
<if test='userId != "1"'> |
|
|
AND unified_social_credit_code = ( |
|
|
<!-- AND unified_social_credit_code = (--> |
|
|
SELECT |
|
|
<!-- SELECT--> |
|
|
IFNULL( sd.unified_social_credit_code,1) |
|
|
<!-- IFNULL( sd.unified_social_credit_code,1)--> |
|
|
FROM |
|
|
<!-- FROM--> |
|
|
sys_user su left join sys_dept sd on su.dept_id=sd.id |
|
|
<!-- sys_user su left join sys_dept sd on su.dept_id=sd.id--> |
|
|
AND su.id=#{userId} LIMIT 1) |
|
|
<!-- AND su.id=#{userId} LIMIT 1)--> |
|
|
</if> |
|
|
</if> |
|
|
<if test="enterpriseName!=null and enterpriseName!=''"> |
|
|
<if test="enterpriseName!=null and enterpriseName!=''"> |
|
|
and enterprise_name like concat('%',#{enterpriseName},'%') |
|
|
and enterprise_name like concat('%',#{enterpriseName},'%') |
|
|
</if> |
|
|
</if> |
|
|
<!-- <if test=' adcd != null and adcd !=""'>--> |
|
|
<if test=' adcd != null and adcd !=""'> |
|
|
<!-- and adcd like concat(#{adcd},'%')--> |
|
|
and adcd like concat(#{adcd},'%') |
|
|
<!-- </if>--> |
|
|
</if> |
|
|
<if test="queryAccd != null and queryAccd != ''"> |
|
|
<if test="queryAccd != null and queryAccd != ''"> |
|
|
and adcd like concat(#{queryAccd},'%') |
|
|
and adcd like concat(#{queryAccd},'%') |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
<!-- order by ${orderBy} desc--> |
|
|
order by ${orderBy} desc |
|
|
</if> |
|
|
</if> |
|
|
<if test="userType==99"> |
|
|
<if test="userType==99"> |
|
|
<where> |
|
|
<where> |
|
|