|
@@ -70,6 +70,19 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
|
|
|
|
|
|
|
|
/**
|
|
|
+ * 客户下拉分页
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Page<CustomerVo> selPage(CustomerSelectDto dto) {
|
|
|
+ IWrapper<CustomerVo> wrapper = IWrapper.getWrapper();
|
|
|
+ wrapper.like(Customer::getName, dto.getKeyword());
|
|
|
+ wrapper.eq("c", Customer::getUserId, dto.getUserId());
|
|
|
+ Page<CustomerVo> page = baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
+ CustomizeAreaUtil.setAreaName(page.getRecords());
|
|
|
+ return page;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 查询客户的列表
|
|
|
*
|
|
|
* @param dto
|
|
@@ -279,12 +292,12 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
|
|
* 客户来源统计
|
|
|
*/
|
|
|
@Override
|
|
|
- public Map<String,Object> sourceStatistics(CustomerSelectDto customerDto) {
|
|
|
- if (ObjectUtil.isEmpty(customerDto) && ObjectUtil.isEmpty(customerDto.getStatisticsType())){
|
|
|
+ public Map<String, Object> sourceStatistics(CustomerSelectDto customerDto) {
|
|
|
+ if (ObjectUtil.isEmpty(customerDto) && ObjectUtil.isEmpty(customerDto.getStatisticsType())) {
|
|
|
throw new ServiceException("参数异常:统计类型不能为null");
|
|
|
}
|
|
|
//存放统计数据
|
|
|
- Map<String,Object> map = new HashMap<>();
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
QueryWrapper<Customer> query = Wrappers.query();
|
|
|
if (ObjectUtil.isNotEmpty(customerDto.getType())) {
|
|
|
// 私海客户查询
|