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) ); }