|
@@ -223,7 +223,7 @@
|
|
|
<if test="userId != null">
|
|
|
LEFT JOIN REPAL_RESPONSIBLE_PERSON AS rPerson ON bill.ID = rPerson.REPAL_BILL_ID
|
|
|
</if>
|
|
|
- WHERE bill.REPAL_BOOK_ID = #{repalBookId}
|
|
|
+ WHERE bill.REPAL_BOOK_ID = #{repalBookId} AND bill.DELETED = 0
|
|
|
<if test="userId != null">
|
|
|
AND rPerson.USER_ID = #{userId}
|
|
|
</if>
|
|
@@ -234,7 +234,7 @@
|
|
|
<if test="userId != null">
|
|
|
LEFT JOIN REPAL_RESPONSIBLE_PERSON AS rPerson ON bill.ID = rPerson.REPAL_BILL_ID
|
|
|
</if>
|
|
|
- WHERE bill.REPAL_BOOK_ID = #{repalBookId} AND bill.REPAL_BILL_TYPE = 1
|
|
|
+ WHERE bill.REPAL_BOOK_ID = #{repalBookId} AND bill.REPAL_BILL_TYPE = 1 AND bill.DELETED = 0
|
|
|
<if test="start != null">
|
|
|
AND bill.DIAGNOSIS_DATETIME >= #{start}
|
|
|
</if>
|
|
@@ -262,7 +262,7 @@
|
|
|
<if test="userId != null">
|
|
|
LEFT JOIN REPAL_RESPONSIBLE_PERSON AS rPerson ON bill.ID = rPerson.REPAL_BILL_ID
|
|
|
</if>
|
|
|
- WHERE bill.REPAL_BOOK_ID = #{repalBookId}
|
|
|
+ WHERE bill.REPAL_BOOK_ID = #{repalBookId} AND bill.DELETED = 0
|
|
|
<if test="repalBillStatus == 2">
|
|
|
AND bill.REPAL_BILL_STATUS = 2
|
|
|
</if>
|