|
|
@@ -78,6 +78,11 @@ public class FsDoctorPatientController extends AppBaseController {
|
|
|
fsDoctorPatient.setDoctorId(Long.valueOf(doctorId));
|
|
|
PageHelper.startPage(fsDoctorPatient.getPageNum(), fsDoctorPatient.getPageSize());
|
|
|
List<FsDoctorPatient> list = fsDoctorPatientService.selectFsDoctorPatientList(fsDoctorPatient);
|
|
|
+ for (FsDoctorPatient item : list) {
|
|
|
+ if (item.getPhone() != null) {
|
|
|
+ item.setPhone(item.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
+ }
|
|
|
+ }
|
|
|
PageInfo<FsDoctorPatient> listPageInfo=new PageInfo<>(list);
|
|
|
return AjaxResult.success(listPageInfo);
|
|
|
}
|
|
|
@@ -105,7 +110,11 @@ public class FsDoctorPatientController extends AppBaseController {
|
|
|
@ApiOperation("获取患者详情")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
- return AjaxResult.success(fsDoctorPatientService.selectFsDoctorPatientById(id));
|
|
|
+ FsDoctorPatient fsDoctorPatient = fsDoctorPatientService.selectFsDoctorPatientById(id);
|
|
|
+ if (fsDoctorPatient.getPhone() != null) {
|
|
|
+ fsDoctorPatient.setPhone(fsDoctorPatient.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
+ }
|
|
|
+ return AjaxResult.success(fsDoctorPatient);
|
|
|
}
|
|
|
|
|
|
/**
|