|
@@ -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>
|