|
|
@ -77,7 +77,11 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity |
|
|
|
// 时间参数校验
|
|
|
|
// 时间参数校验
|
|
|
|
this.timeCheckout(customerRequest.getCreateTime(), customerRequest.getStartTime(), customerRequest.getEndTime(), customerRequest); |
|
|
|
this.timeCheckout(customerRequest.getCreateTime(), customerRequest.getStartTime(), customerRequest.getEndTime(), customerRequest); |
|
|
|
// 分页参数校验
|
|
|
|
// 分页参数校验
|
|
|
|
Page<Object> pages = this.pageCheckout(page, size); |
|
|
|
if (page == null || size == null) { |
|
|
|
|
|
|
|
page = 1; |
|
|
|
|
|
|
|
size = 10; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Page<Object> pages = new Page<>(page, size); |
|
|
|
// 查询所有客户的基本信息
|
|
|
|
// 查询所有客户的基本信息
|
|
|
|
IPage<CustomerEntityResponse> customerEntityIPage = customerDao.queryList(pages, customerRequest); |
|
|
|
IPage<CustomerEntityResponse> customerEntityIPage = customerDao.queryList(pages, customerRequest); |
|
|
|
// 获取所有的客户基本信息
|
|
|
|
// 获取所有的客户基本信息
|
|
|
@ -478,7 +482,7 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity |
|
|
|
* @param page 当前页 |
|
|
|
* @param page 当前页 |
|
|
|
* @param size 每页条数 |
|
|
|
* @param size 每页条数 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private Page<Object> pageCheckout(Integer page, Integer size) { |
|
|
|
/*private Page<Object> pageCheckout(Integer page, Integer size) { |
|
|
|
// 查询客户有效总条数
|
|
|
|
// 查询客户有效总条数
|
|
|
|
Integer count = this.count(new QueryWrapper<CustomerEntity>().eq("del_or_not", CrmsConstant.NOT_DELETE)); |
|
|
|
Integer count = this.count(new QueryWrapper<CustomerEntity>().eq("del_or_not", CrmsConstant.NOT_DELETE)); |
|
|
|
if (size == null || size < 1) { |
|
|
|
if (size == null || size < 1) { |
|
|
@ -493,7 +497,7 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerDao, CustomerEntity |
|
|
|
} |
|
|
|
} |
|
|
|
Page<Object> pages = new Page<>(page, size); |
|
|
|
Page<Object> pages = new Page<>(page, size); |
|
|
|
return pages; |
|
|
|
return pages; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 拼接客户及其对应的客户经理及部门信息 |
|
|
|
* 拼接客户及其对应的客户经理及部门信息 |
|
|
|