|
|
@@ -115,6 +115,25 @@ public class CrmCustomerController extends BaseController
|
|
|
}
|
|
|
return R.ok().put("rows", list);
|
|
|
}
|
|
|
+ @PreAuthorize("@ss.hasPermi('crm:customer:list')")
|
|
|
+ @GetMapping("/listNoPage")
|
|
|
+ public R listNoPage(CrmCustomerListQueryParam crmCustomer){
|
|
|
+
|
|
|
+ LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ crmCustomer.setCompanyId(loginUser.getCompany().getCompanyId());
|
|
|
+ if(!StringUtils.isEmpty(crmCustomer.getReceiveTimeRange())){
|
|
|
+ crmCustomer.setReceiveTimeList(crmCustomer.getReceiveTimeRange().split("--"));
|
|
|
+ }
|
|
|
+ List<CrmCustomerListVO> list = crmCustomerService.selectCrmCustomerListQueryParam(crmCustomer);
|
|
|
+ if (list != null) {
|
|
|
+ for (CrmCustomerListVO vo : list) {
|
|
|
+ if(vo.getMobile()!=null){
|
|
|
+ vo.setMobile(vo.getMobile().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return R.ok().put("rows", list);
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation("获取我的协作客户列表")
|
|
|
@PreAuthorize("@ss.hasPermi('crm:customer:assistList')")
|