소스 검색

搜索公司

xda 3 년 전
부모
커밋
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}