客户健康优化修改

This commit is contained in:
xiezhijun
2021-01-26 20:42:59 +08:00
parent e53ac00fbd
commit 9c899e344e
13 changed files with 641 additions and 267 deletions

View File

@ -1,6 +1,8 @@
package com.stdiet.custom.controller;
import java.util.List;
import com.stdiet.common.utils.StringUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -42,6 +44,11 @@ public class SysCustomerHealthyController extends BaseController
{
startPage();
List<SysCustomerHealthy> list = sysCustomerHealthyService.selectSysCustomerHealthyList(sysCustomerHealthy);
for(SysCustomerHealthy customerHealthy : list){
if(StringUtils.isNotEmpty(customerHealthy.getPhone())){
customerHealthy.setPhone(StringUtils.hiddenPhoneNumber(customerHealthy.getPhone()));
}
}
return getDataTable(list);
}
@ -54,6 +61,11 @@ public class SysCustomerHealthyController extends BaseController
public AjaxResult export(SysCustomerHealthy sysCustomerHealthy)
{
List<SysCustomerHealthy> list = sysCustomerHealthyService.selectSysCustomerHealthyList(sysCustomerHealthy);
for(SysCustomerHealthy customerHealthy : list){
if(StringUtils.isNotEmpty(customerHealthy.getPhone())){
customerHealthy.setPhone(StringUtils.hiddenPhoneNumber(customerHealthy.getPhone()));
}
}
ExcelUtil<SysCustomerHealthy> util = new ExcelUtil<SysCustomerHealthy>(SysCustomerHealthy.class);
return util.exportExcel(list, "healthy");
}