From a382fb8002a044295b78bee0955073a725b3ff13 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Thu, 10 Aug 2023 20:43:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/basicdata/controller/BasicdataClientController.java | 1 + .../basicdata/service/impl/BasicdataClientServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientController.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientController.java index 01005286a..c4532cae5 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientController.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/controller/BasicdataClientController.java @@ -96,6 +96,7 @@ public class BasicdataClientController extends BladeController { }else{ queryWrapper.eq("pid","0"); } + queryWrapper.orderByDesc("create_time"); IPage pages = basicdataClientService.page(Condition.getPage(query),queryWrapper); // pages.getRecords().forEach( i ->{ // if(!i.getCreateUser().equals(null)){ diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java index 5d5766166..808ae76e4 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java @@ -290,7 +290,7 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl listCode(String code) { return baseMapper.selectList(Wrappers.query().lambda() - .eq(BasicdataClientEntity::getReserve1,code) + .eq(BasicdataClientEntity::getClientCode,code) ); }