xda %!s(int64=2) %!d(string=hai) anos
pai
achega
3265e81871
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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>