|
|
|
@ -942,9 +942,18 @@
|
|
|
|
|
<if test="abnormalBill.abnormalNo != null and abnormalBill.abnormalNo != ''">
|
|
|
|
|
AND zab.ABNORMAL_NO = #{abnormalBill.abnormalNo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="abnormalBill.status != null and abnormalBill.status != ''">
|
|
|
|
|
<if test="abnormalBill.status != null and abnormalBill.status != '' and abnormalBill.status != 'COMP'.toString()">
|
|
|
|
|
AND zab.STATUS = #{abnormalBill.status}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="abnormalBill.status == 'J'.toString()">
|
|
|
|
|
AND zab.PROGRAM IS NULL
|
|
|
|
|
</if>
|
|
|
|
|
<if test="abnormalBill.status == 'F'.toString()">
|
|
|
|
|
AND zab.CORRECTION IS NULL
|
|
|
|
|
</if>
|
|
|
|
|
<if test="abnormalBill.status == 'COMP'.toString()">
|
|
|
|
|
AND zab.PROGRAM = 'true' AND zab.CORRECTION = 'true' AND zab.status != 'G'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="abnormalBill.startDateTime != null ">
|
|
|
|
|
AND zab.CREATED_DATE_TIME >= #{abnormalBill.startDateTime}
|
|
|
|
|
</if>
|
|
|
|
|