소스 검색

查询返回

xda 3 년 전
부모
커밋
3265e81871
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/main/resources/mapper/RepalBillMapper.xml

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

@@ -159,7 +159,9 @@
 
 
     <select id="searchPage" parameterType="com.winhc.repal.model.bo.SearchBillPageBO" resultType="com.winhc.repal.entity.RepalBill">
-        SELECT bill.* FROM REPAL_BILL AS bill
+        SELECT
+        DISTINCT
+        bill.* FROM REPAL_BILL AS bill
         LEFT JOIN REPAL_RESPONSIBLE_PERSON AS aPerson ON aPerson.REPAL_BILL_ID = bill.ID and bill.REPAL_BILL_TYPE = 1 and aPerson.DELETED = 0
         LEFT JOIN REPAL_RESPONSIBLE_PERSON AS bPerson ON bPerson.REPAL_BILL_ID = bill.ID and bill.REPAL_BILL_TYPE = 2 and bPerson.DELETED = 0
         <where>