|
|
@ -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 |
|
|
|