From 9de3d450d394323c986f0c8d371cfc9d96de5aa0 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Wed, 7 Aug 2024 11:31:53 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=B9=B2=E7=BA=BFbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/BasicdataClientMapper.xml | 2 + .../service/impl/OpenOrderServiceImpl.java | 42 +++++++++++++------ 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml index df9ee3f69..395318cbd 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml @@ -101,6 +101,8 @@ from logpm_basicdata_client lbc left join logpm_basicdata_store_contact lbsc on lbsc.shop_id = lbc.id where lbc.id = #{clientId} + order by lbsc.default_type desc + limit 1