|
@ -307,11 +307,21 @@ ORDER BY |
|
|
epdc_group |
|
|
epdc_group |
|
|
WHERE |
|
|
WHERE |
|
|
DEL_FLAG = '0' |
|
|
DEL_FLAG = '0' |
|
|
AND SECTION_CODE = 'theme_group' |
|
|
|
|
|
AND CATEGORY_CODE = 'police_group' |
|
|
|
|
|
AND TYPE_KEY = 'community_party' |
|
|
|
|
|
AND STATE IN ( 10, 15, 20 ) |
|
|
AND STATE IN ( 10, 15, 20 ) |
|
|
AND DEPT_ID = #{deptId} |
|
|
<if test="sectionCode != null and sectionCode != ''"> |
|
|
|
|
|
AND SECTION_CODE = #{sectionCode} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="categoryCode != null and categoryCode != ''"> |
|
|
|
|
|
AND CATEGORY_CODE = #{categoryCode} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="typeKey != null and typeKey != ''"> |
|
|
|
|
|
AND TYPE_KEY = #{typeKey} |
|
|
|
|
|
</if> |
|
|
|
|
|
AND (find_in_set(#{deptId},ALL_DEPT_IDS) |
|
|
|
|
|
OR DEPT_ID IN |
|
|
|
|
|
<foreach item="dept" collection="deptList" open="(" separator="," close=")"> |
|
|
|
|
|
#{dept} |
|
|
|
|
|
</foreach>) |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectListOfGroupByDeptId" resultType="com.elink.esua.epdc.dto.DeptLevelAndLeaderDTO"> |
|
|
<select id="selectListOfGroupByDeptId" resultType="com.elink.esua.epdc.dto.DeptLevelAndLeaderDTO"> |
|
|