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; - } + }*/ /** * 拼接客户及其对应的客户经理及部门信息