fhx
2023-12-08 1c1cdff2c35f93adab954a6f8413f8cfd79c444d
phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java
@@ -92,6 +92,12 @@
        //校验参数
        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) {
@@ -113,7 +119,9 @@
            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();
@@ -152,6 +160,12 @@
            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("作废治疗通知单不可修改!");
@@ -173,6 +187,8 @@
        //修改
        treatSingle.setTreatSingleNo(updateTreat.getTreatSingleNo());
        treatSingle.setCommonId(updateTreat.getCommonId());
        treatSingle.setaNurseId(updateTreat.getaNurseId());
        treatSingle.setaDoctorId(updateTreat.getaDoctorId());
        treatV3Service.edit(treatSingle, projectList, visitOrder, employeeRole, updateTreat, signList);
        //当状态是 待确认 发送短信给客户确认