瀏覽代碼

查询返回

xda 2 年之前
父節點
當前提交
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>