|
@@ -213,6 +213,12 @@ public class FsDoctorPatientController extends AppBaseController {
|
|
|
fsCompanyCustomer.setCompanyUserIds(companyUserIds);
|
|
fsCompanyCustomer.setCompanyUserIds(companyUserIds);
|
|
|
PageHelper.startPage(fsCompanyCustomer.getPageNum(), fsCompanyCustomer.getPageSize());
|
|
PageHelper.startPage(fsCompanyCustomer.getPageNum(), fsCompanyCustomer.getPageSize());
|
|
|
List<FsCompanyCustomer> list = fsCompanyCustomerService.selectFsCompanyCustomerListByCompanyUserIds(fsCompanyCustomer);
|
|
List<FsCompanyCustomer> list = fsCompanyCustomerService.selectFsCompanyCustomerListByCompanyUserIds(fsCompanyCustomer);
|
|
|
|
|
+ //电话号码脱敏
|
|
|
|
|
+ for (FsCompanyCustomer item : list) {
|
|
|
|
|
+ if (item.getPhone() != null) {
|
|
|
|
|
+ item.setPhone(item.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
AjaxResult.put("data", new PageInfo<>(list));
|
|
AjaxResult.put("data", new PageInfo<>(list));
|
|
|
return AjaxResult;
|
|
return AjaxResult;
|
|
|
}
|
|
}
|
|
@@ -222,6 +228,10 @@ public class FsDoctorPatientController extends AppBaseController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/companyCustomer/{id}")
|
|
@GetMapping("/companyCustomer/{id}")
|
|
|
public AjaxResult getCompanyCustomerInfo(@PathVariable Long id) {
|
|
public AjaxResult getCompanyCustomerInfo(@PathVariable Long id) {
|
|
|
- return AjaxResult.success(fsCompanyCustomerService.selectFsCompanyCustomerById(id));
|
|
|
|
|
|
|
+ FsCompanyCustomer fsCompanyCustomer = fsCompanyCustomerService.selectFsCompanyCustomerById(id);
|
|
|
|
|
+ if (fsCompanyCustomer.getPhone() != null) {
|
|
|
|
|
+ fsCompanyCustomer.setPhone(fsCompanyCustomer.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
|
|
+ }
|
|
|
|
|
+ return AjaxResult.success(fsCompanyCustomer);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|