diff --git a/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiComparisonRecordDao.xml b/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiComparisonRecordDao.xml
index ff9e7a7fb1..a4b098bb07 100644
--- a/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiComparisonRecordDao.xml
+++ b/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiComparisonRecordDao.xml
@@ -74,26 +74,13 @@
b.comparison_result comparisonResult
FROM
ic_resi_user a
-
-
- LEFT JOIN ic_resi_comparison_record b ON a.id = b.resi_id AND b.del_flag = '0'
-
- AND b.identical =#{identical}
-
-
- AND b.type =#{type}
-
-
-
- INNER JOIN ic_resi_comparison_record b ON a.id = b.resi_id AND b.del_flag = '0'
-
- AND b.identical =#{identical}
-
-
- AND b.type =#{type}
-
-
-
+ LEFT JOIN ic_resi_comparison_record b ON a.id = b.resi_id AND b.del_flag = '0'
+
+ AND b.identical =#{identical}
+
+
+ AND b.type =#{type}
+
WHERE
a.del_flag = '0'
AND a.customer_id = #{customerId}
@@ -101,6 +88,12 @@
AND a.id_card =#{idCard}
+
+ AND b.identical =#{identical}
+
+
+ AND b.type =#{type}
+
ORDER BY a.pids ASC, b.created_time DESC