| | |
| | | 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(); |
| | |
| | | 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; |
| | | } |
| | | |