|
|
|
@ -42,7 +42,7 @@ public class AppointmentCenterDataServiceImpl implements IAppointmentCenterDataS |
|
|
|
|
* @return 预约记录 |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public AppointmentCenterData selectAppointmentCenterDataById(Long id) { |
|
|
|
|
public AppointmentCenterData selectAppointmentCenterDataById(Long id,SysUser user) { |
|
|
|
|
|
|
|
|
|
AppointmentCenterData appointmentCenterData = appointmentCenterDataMapper.selectAppointmentCenterDataById(id); |
|
|
|
|
if (appointmentCenterData.getCertificateType().equals("5501")) { |
|
|
|
@ -50,8 +50,14 @@ public class AppointmentCenterDataServiceImpl implements IAppointmentCenterDataS |
|
|
|
|
appointmentCenterData.setDocumentsNumber(desensitizeIDCard(documentsNumber)); |
|
|
|
|
} |
|
|
|
|
if (!appointmentCenterData.getAppointmentPeoplePhone().isEmpty()) { |
|
|
|
|
String phone = WeiBoEncryption.decrypt(appointmentCenterData.getAppointmentPeoplePhone(), rule); |
|
|
|
|
appointmentCenterData.setAppointmentPeoplePhone(desensitizePhoneNumber(phone)); |
|
|
|
|
|
|
|
|
|
String phone = WeiBoEncryption.decrypt(appointmentCenterData.getAppointmentPeoplePhone(), rule); |
|
|
|
|
if(user.getRoles().stream() |
|
|
|
|
.noneMatch(role -> role.getRoleId() == 1)){ |
|
|
|
|
appointmentCenterData.setAppointmentPeoplePhone(desensitizePhoneNumber(phone)); |
|
|
|
|
}else { |
|
|
|
|
appointmentCenterData.setAppointmentPeoplePhone(phone); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return appointmentCenterData; |
|
|
|
|
} |
|
|
|
@ -92,8 +98,6 @@ public class AppointmentCenterDataServiceImpl implements IAppointmentCenterDataS |
|
|
|
|
}else { |
|
|
|
|
item.setAppointmentPeoplePhone(phone); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|