Browse Source

sql问题

feature/yujt_vim
zhangyuan 5 years ago
parent
commit
bd8209837f
  1. 2
      epdc-cloud-admin/src/main/resources/mapper/ReportMaCodeDao.xml

2
epdc-cloud-admin/src/main/resources/mapper/ReportMaCodeDao.xml

@ -43,7 +43,7 @@
<if test="communityId != null and communityId != ''">and dc.id = #{communityId}</if>
<if test="gridId != null and gridId != ''">and dg.id = #{gridId}</if>
<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>
ORDER BY
dc.`name` asc,dg.`name` asc

Loading…
Cancel
Save