|
|
@@ -794,9 +794,9 @@ public class LocalBusPatientService extends BaseService<BusPatientMapper, BusPat
|
|
|
contactQuery.setDoctorId(String.valueOf(SecurityUtil.getId()));
|
|
|
String doctorId = contactQuery.getDoctorId();
|
|
|
AppDoctorUserEntity appDoctorUserEntity = iAppDoctorUserClient.selectDoctor(doctorId);
|
|
|
- if (ObjectUtil.isNotNull( appDoctorUserEntity.getIsEdit())&& appDoctorUserEntity.getIsEdit()==1){
|
|
|
+ if (appDoctorUserEntity != null && ObjectUtil.isNotNull(appDoctorUserEntity.getIsEdit()) && appDoctorUserEntity.getIsEdit() == 1){
|
|
|
return clinicService.updateById(busClinic);
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
throw new CustomException("没有权限修改");
|
|
|
}
|
|
|
}
|