|
@ -43,7 +43,7 @@ |
|
|
<if test="communityId != null and communityId != ''">and dc.id = #{communityId}</if> |
|
|
<if test="communityId != null and communityId != ''">and dc.id = #{communityId}</if> |
|
|
<if test="gridId != null and gridId != ''">and dg.id = #{gridId}</if> |
|
|
<if test="gridId != null and gridId != ''">and dg.id = #{gridId}</if> |
|
|
<if test='dataScopeDeptIds != null and dataScopeDeptIds.size() > 0'> |
|
|
<if test='dataScopeDeptIds != null and dataScopeDeptIds.size() > 0'> |
|
|
AND ma.grid_id IN <foreach collection="dataScopeDeptIds" open="(" separator="," close=")" item="deptId">#{deptId}</foreach> |
|
|
AND ed.grid_id IN <foreach collection="dataScopeDeptIds" open="(" separator="," close=")" item="deptId">#{deptId}</foreach> |
|
|
</if> |
|
|
</if> |
|
|
ORDER BY |
|
|
ORDER BY |
|
|
dc.`name` asc,dg.`name` asc |
|
|
dc.`name` asc,dg.`name` asc |
|
|