소스 검색

update:修改编辑患者信息

zhouzeyu 7 달 전
부모
커밋
1d94fd3b15
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      nb-service/web-service/src/main/java/com/nb/web/service/bus/service/LocalBusPatientService.java

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