瀏覽代碼

搜索公司

xda 2 年之前
父節點
當前提交
dcd1c4b86d
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/main/resources/mapper/RepalBillMapper.xml

+ 2 - 3
src/main/resources/mapper/RepalBillMapper.xml

@@ -103,12 +103,11 @@
         SELECT COUNT(*) AS totalCount, IFNULL(SUM(bill.RECEIVABLE), 0)  FROM REPAL_RESPONSIBLE_PERSON AS person
         LEFT JOIN REPAL_BILL AS bill ON person.REPAL_BILL_ID = bill.ID
         WHERE person.USER_ID = #{userId} AND person.DELETED = 0
-        AND
         <if test="repalBillStatus == 1">
-            bill.REPAL_BILL_STATUS = 1
+            AND bill.REPAL_BILL_STATUS = 1
         </if>
         <if test="repalBillStatus == 2">
-            bill.REPAL_BILL_STATUS IN (1,2)
+            AND bill.REPAL_BILL_STATUS IN (1,2)
         </if>
         AND bill.REPAL_GROUP_ID = #{repalGroupId}
         AND bill.REPAL_BOOK_ID = #{repalBookId}