|
@ -72,11 +72,15 @@ public class DeviceHealthIndexService extends BaseDeviceJpaService<DeviceHealthI
|
|
}
|
|
}
|
|
List<DeviceHealthIndex> list = (List<DeviceHealthIndex>)search("", filter.toString(), "-czrq", page, pageSize);
|
|
List<DeviceHealthIndex> list = (List<DeviceHealthIndex>)search("", filter.toString(), "-czrq", page, pageSize);
|
|
long count = 0;
|
|
long count = 0;
|
|
|
|
String regex = "(\\w{3})(\\w+)(\\w{3})";
|
|
if(list !=null && list.size()>0){
|
|
if(list !=null && list.size()>0){
|
|
count = getCount(filter.toString());
|
|
count = getCount(filter.toString());
|
|
for (DeviceHealthIndex info : list){
|
|
for (DeviceHealthIndex info : list){
|
|
Patient patient = findPatient(info.getUser());
|
|
Patient patient = findPatient(info.getUser());
|
|
info.setUserName(patient== null?"":patient.getName());
|
|
info.setUserName(patient== null?"":patient.getName());
|
|
|
|
if(StringUtils.isNotBlank(info.getIdcard())){
|
|
|
|
info.setIdcard(info.getIdcard().replaceAll(regex, "$1****$3"));
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return new PageImpl<DeviceHealthIndex>(list,pageRequest,count);
|
|
return new PageImpl<DeviceHealthIndex>(list,pageRequest,count);
|