|
|
@ -47,10 +47,13 @@ |
|
|
|
t1.PARTY_GROUP_NAME |
|
|
|
from epdc_party_group_officials t |
|
|
|
left join epdc_party_group t1 on t.PARTY_GROUP_ID = t1.ID and t1.DEL_FLAG='0' |
|
|
|
where t.DEL_FLAG ='0' and t.GRID_ID IN |
|
|
|
<foreach item="deptIdItem" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
#{deptIdItem} |
|
|
|
</foreach> |
|
|
|
where t.DEL_FLAG ='0' |
|
|
|
<if test="deptIdList!=null and deptIdList.size()>0"> |
|
|
|
and t.GRID_ID IN |
|
|
|
<foreach item="deptIdItem" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
#{deptIdItem} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="groupId!=null and groupId != ''"> |
|
|
|
and t.PARTY_GROUP_ID = #{groupId} |
|
|
|
</if> |
|
|
|