|
@ -428,9 +428,23 @@ |
|
|
COUNT( u.party_flag = '1' OR NULL ) partyMemberCount |
|
|
COUNT( u.party_flag = '1' OR NULL ) partyMemberCount |
|
|
FROM |
|
|
FROM |
|
|
esua_epdc_user.epdc_user u |
|
|
esua_epdc_user.epdc_user u |
|
|
|
|
|
LEFT JOIN esua_epdc_admin.sys_dept ad ON u.DEPT_ID = ad.ID |
|
|
|
|
|
AND ad.type_key = 'grid_party' |
|
|
|
|
|
LEFT JOIN esua_epdc_admin.sys_dept ad1 ON ad.pid = ad1.id |
|
|
|
|
|
LEFT JOIN esua_epdc_admin.sys_dept ad2 ON ad1.pid = ad2.id |
|
|
WHERE |
|
|
WHERE |
|
|
u.DEL_FLAG = '0' |
|
|
u.DEL_FLAG = '0' |
|
|
AND u.DEPT_ID = #{deptId} |
|
|
AND ad.id IS NOT NULL |
|
|
|
|
|
<if test="deptIdList != null and deptIdList.size() > 0"> |
|
|
|
|
|
and ad2.ID in |
|
|
|
|
|
<foreach item="deptIdItem" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
|
|
#{deptIdItem} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='formDto.deptId != null and formDto.deptId != ""'> |
|
|
|
|
|
AND ad2.id = #{formDto.deptId} |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
)t |
|
|
)t |
|
|
</select> |
|
|
</select> |
|
|
<select id="getGridStatistics" resultType="com.elink.esua.epdc.dto.user.result.GriddingCountDTO" parameterType="com.elink.esua.epdc.dto.user.form.UserCountDTO"> |
|
|
<select id="getGridStatistics" resultType="com.elink.esua.epdc.dto.user.result.GriddingCountDTO" parameterType="com.elink.esua.epdc.dto.user.form.UserCountDTO"> |
|
@ -445,9 +459,16 @@ |
|
|
LEFT JOIN esua_epdc_admin.sys_dept ad2 ON ad1.pid = ad2.id |
|
|
LEFT JOIN esua_epdc_admin.sys_dept ad2 ON ad1.pid = ad2.id |
|
|
WHERE |
|
|
WHERE |
|
|
ad.type_key = 'grid_party' |
|
|
ad.type_key = 'grid_party' |
|
|
AND ad2.id != 1191534129122230274 |
|
|
<if test="deptIdList != null and deptIdList.size() > 0"> |
|
|
AND ad2.id != 1201319745506598913 |
|
|
and ad2.ID in |
|
|
AND ad2.id = #{deptId} |
|
|
<foreach item="deptIdItem" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
|
|
#{deptIdItem} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test='formDto.deptId != null and formDto.deptId != ""'> |
|
|
|
|
|
AND ad2.id = #{formDto.deptId} |
|
|
|
|
|
</if> |
|
|
ORDER BY |
|
|
ORDER BY |
|
|
ad.create_date ASC |
|
|
ad.create_date ASC |
|
|
</select> |
|
|
</select> |
|
|