Browse Source

update:修改编辑患者信息

zhouzeyu 7 tháng trước cách đây
mục cha
commit
1d94fd3b15

+ 2 - 2
nb-service/web-service/src/main/java/com/nb/web/service/bus/service/LocalBusPatientService.java

@@ -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("没有权限修改");
         }
     }