Ver Fonte

查询返回

xda há 2 anos atrás
pai
commit
3265e81871
1 ficheiros alterados com 3 adições e 1 exclusões
  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>