| | |
| | | //校验参数 |
| | | checkTreatSingleParam(true, treatSingle, signList); |
| | | |
| | | //判断是否发送通知MIC分配治疗 |
| | | Integer isMicNotice = BaseEntity.NO; |
| | | // if(reqVo.getIsMicNotice() != null && reqVo.getIsMicNotice() == BaseEntity.YES){ |
| | | // isMicNotice = BaseEntity.YES; |
| | | // } |
| | | |
| | | //治疗单项目 |
| | | List<TreatProject> projectList = reqVo.getProjectList(); |
| | | if (projectList == null || projectList.size() == 0) { |
| | |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL, "查询不到到访订单信息"); |
| | | } |
| | | treatSingle.setUserId(visitOrder.getUserId()); |
| | | treatV3Service.add(treatSingle, projectList, visitOrder, employeeRole,0, signList); |
| | | |
| | | |
| | | treatV3Service.add(treatSingle, projectList, visitOrder, employeeRole, isMicNotice, signList); |
| | | |
| | | //返回id |
| | | JSONObject data = new JSONObject(); |
| | |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL, "未找到"); |
| | | } |
| | | |
| | | // //判断是否发送通知MIC分配治疗(如果治疗单分配医生不为空,则不继续通知MIC) |
| | | // Integer isMicNotice = BaseEntity.NO; |
| | | // if(reqVo.getIsMicNotice() != null && reqVo.getIsMicNotice() == BaseEntity.YES |
| | | // && StringUtils.noNull(updateTreat.getaDoctorId())){ |
| | | // isMicNotice = BaseEntity.YES; |
| | | // } |
| | | |
| | | if(updateTreat.getStatus() == TreatSingleConstants.STATUS_CANCEL){ |
| | | throwParamException("作废治疗通知单不可修改!"); |
| | |
| | | //修改 |
| | | treatSingle.setTreatSingleNo(updateTreat.getTreatSingleNo()); |
| | | treatSingle.setCommonId(updateTreat.getCommonId()); |
| | | treatSingle.setaNurseId(updateTreat.getaNurseId()); |
| | | treatSingle.setaDoctorId(updateTreat.getaDoctorId()); |
| | | treatV3Service.edit(treatSingle, projectList, visitOrder, employeeRole, updateTreat, signList); |
| | | |
| | | //当状态是 待确认 发送短信给客户确认 |