From ef1756204222b7f4c8cc08c4c1d3d7a1c0b3fd24 Mon Sep 17 00:00:00 2001 From: river <1376754470@qq.com> Date: Fri, 12 Mar 2021 17:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E6=A3=80=E9=AA=8C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crms/service/impl/CustomerAppletServiceImpl.java | 2 ++ .../crms/service/impl/CustomerServiceImpl.java | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java index feac8749..692d609d 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerAppletServiceImpl.java @@ -227,6 +227,7 @@ public class CustomerAppletServiceImpl extends ServiceImpl pages = this.pageCheckout(page, size); + if (page == null || size == null) { + page = 1; + size = 10; + } + Page pages = new Page<>(page, size); // 查询所有客户的基本信息 IPage customerEntityIPage = customerDao.queryList(pages, customerRequest); // 获取所有的客户基本信息 @@ -478,7 +482,7 @@ public class CustomerServiceImpl extends ServiceImpl pageCheckout(Integer page, Integer size) { + /*private Page pageCheckout(Integer page, Integer size) { // 查询客户有效总条数 Integer count = this.count(new QueryWrapper().eq("del_or_not", CrmsConstant.NOT_DELETE)); if (size == null || size < 1) { @@ -493,7 +497,7 @@ public class CustomerServiceImpl extends ServiceImpl pages = new Page<>(page, size); return pages; - } + }*/ /** * 拼接客户及其对应的客户经理及部门信息