fhx
2024-09-06 7471ffb453e764764f0cf207c354ad5a508d0037
1.修改部分预约判断逻辑
1个文件已修改
17 ■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/controller/appointment/AppointmentController.java 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/controller/appointment/AppointmentController.java
@@ -85,8 +85,10 @@
            throw new TipsException("请选择预约类型!");
        }
        if (dto.getIsMicApprove() == BaseEntity.YES && StringUtils.isEmpty(dto.getImgUrls())){
            throw new TipsException("MIC同意必须选择图片!");
        if (dto.getIsMicApprove() == BaseEntity.YES){
            if(dto.getAddMode() == Appointment.ADD_MODE_ADVISER_V2_3 && StringUtils.isEmpty(dto.getImgUrls())){
                throw new TipsException("MIC同意必须选择图片!");
            }
        }
        String corpUserId = StringUtils.isEmpty(dto.getCorpUserId()) ? null : dto.getCorpUserId();
@@ -724,8 +726,15 @@
            return;
        }
        //非HIS助手顾问新增 或 要MIC同意的则跳过
        if(addMode != Appointment.ADD_MODE_ADVISER_V2_3 || appointment.getIsMicApprove() == BaseEntity.YES){
        //要MIC同意的则跳过
        if(appointment.getIsMicApprove() == BaseEntity.YES){
            return;
        }
        //非HIS助手顾问新增、后台信息的
        if(addMode != Appointment.ADD_MODE_ADVISER_V2_3
                && addMode != Appointment.ADD_MODE_BACKSTAGE_V2_3
                && addMode != Appointment.ADD_MODE_BACKSTAGE_V2_4){
            return;
        }