Browse Source

难点赌点sql修改

master
yinzuomei 4 years ago
parent
commit
155a0aefbb
  1. 14
      epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml

14
epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml

@ -299,8 +299,11 @@
</otherwise>
</choose>
</if>
<if test="status!= null and status != ''">
AND sdd1.EVENT_STATUS_CODE = #{status}
<if test="status!= null and status == 'pending'">
AND sdd1.EVENT_STATUS_CODE in('pending','0')
</if>
<if test="status!= null and status == 'closed'">
AND sdd1.EVENT_STATUS_CODE in('closed','10','5')
</if>
union
select sca.AREA_CODE,sdd2.* from screen_difficulty_data sdd2
@ -322,8 +325,11 @@
</otherwise>
</choose>
</if>
<if test="status!= null and status != ''">
AND sdd2.EVENT_STATUS_CODE = #{status}
<if test="status!= null and status == 'pending'">
AND sdd2.EVENT_STATUS_CODE in('pending','0')
</if>
<if test="status!= null and status == 'closed'">
AND sdd2.EVENT_STATUS_CODE in('closed','10','5')
</if>
) diff
ORDER BY

Loading…
Cancel
Save