From 4f095309fd09c5580e31443af97302e609fb6455 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Thu, 14 May 2020 17:03:51 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=EF=BC=9Atotal=20?= =?UTF-8?q?=E6=94=B9=E4=B8=BAlong=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iocoder/mall/system/biz/service/sms/SmsServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsServiceImpl.java b/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsServiceImpl.java index 2261662c1..83ce9159a 100644 --- a/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsServiceImpl.java +++ b/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsServiceImpl.java @@ -65,7 +65,7 @@ public class SmsServiceImpl implements SmsService { // TODO DOME FROM 芋艿 to 小范:mybatis-plus 的 QueryWrapper 不要到 Service 层,可以抽 Dao 方法里哈。其它的类似可以瞅瞅噢 IPage signPage = smsSignMapper.listSmsSign(queryDTO); List signList = SmsSignConvert.INSTANCE.convert(signPage.getRecords()); - return new PageResult().setList(signList).setTotal((int) signPage.getTotal()); + return new PageResult().setList(signList).setTotal(signPage.getTotal()); } @Override @@ -77,7 +77,7 @@ public class SmsServiceImpl implements SmsService { if (CollectionUtils.isEmpty(templateList)) { // TODO DOME FROM 芋艿 to 小范,Collections.EMPTY_LIST =》Collections.emptyList();另外,可以考虑直接 Convert 哈 - return new PageResult().setList(Collections.emptyList()).setTotal((int) signPage.getTotal()); + return new PageResult().setList(Collections.emptyList()).setTotal(signPage.getTotal()); } // 获取 sign @@ -100,7 +100,7 @@ public class SmsServiceImpl implements SmsService { } }); - return new PageResult().setList(templateList).setTotal((int) signPage.getTotal()); + return new PageResult().setList(templateList).setTotal(signPage.getTotal()); } @Override