From cd21a84cf4727fd1ee6ca55af0336ceb75b28248 Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Tue, 15 Nov 2022 12:37:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/IcResiComparisonRecordDao.xml | 33 ++++++++----------- 1 file changed, 13 insertions(+), 20 deletions(-) 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