| | |
| | | |
| | | //检查完成后,此时检查登记写成了,需要将这个回写给集成平台(线上环境才回写) |
| | | if (active.equals("prod")) { |
| | | AppointmentDO appointmentDO = appointmentMapper.getByApplyNo(createReqVO.getApplyNo()); |
| | | ApplicationTemplate app = new ApplicationTemplate(); |
| | | String action = "S0405"; |
| | | String message = app.getXML(createReqVO.getApplyNo(), "3", "检查登记", createReqVO.getOperater(), appointmentDO.getPatDeptCode(), appointmentDO.getPatDeptDesc(), appointmentDO.getPatWardCode(), appointmentDO.getPatWardDesc(), appointmentDO.getPatBedNo(), appointmentDO.getEpisodeId(), "" + appointmentDO.getBookSrc(), appointmentDO.getPatId(), appointmentDO.getPatName()); |
| | | String s = webServiceClient.callJHFWTYRK(action, "", message); |
| | | log.info("routineFinishWebServiceClient的返回值为:{}", s); |
| | | if (s.contains("更新成功")) { |
| | | //需要根据applyNo,将appiontment表里的status改成3 |
| | | appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "3"); |
| | | if (createReqVO.getCheckType() != 100 && createReqVO.getCheckType() != 1000 && createReqVO.getCheckType() != 1100 && createReqVO.getCheckType() != 1400 && createReqVO.getCheckType() != 1500) { |
| | | AppointmentDO appointmentDO = appointmentMapper.getByApplyNo(createReqVO.getApplyNo()); |
| | | ApplicationTemplate app = new ApplicationTemplate(); |
| | | String action = "S0405"; |
| | | String message = app.getXML(createReqVO.getApplyNo(), "4", "取消检查", createReqVO.getOperater(), appointmentDO.getPatDeptCode(), appointmentDO.getPatDeptDesc(), appointmentDO.getPatWardCode(), appointmentDO.getPatWardDesc(), appointmentDO.getPatBedNo(), appointmentDO.getEpisodeId(), "" + appointmentDO.getBookSrc(), appointmentDO.getPatId(), appointmentDO.getPatName()); |
| | | String s = webServiceClient.callJHFWTYRK(action, "", message); |
| | | log.info("routineFinishWebServiceClient的返回值为:{}", s); |
| | | if (s.contains("更新成功")) { |
| | | //需要根据applyNo,将appiontment表里的status改成3 |
| | | appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4"); |
| | | } |
| | | } else { |
| | | //检查类型是床边的或常规的,需要根据applyNo,将appiontment表里的status改成7 |
| | | appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7"); |
| | | } |
| | | } |
| | | |
| | |
| | | updateDevRent(createReqVO); |
| | | |
| | | if (active.equals("prod")) { |
| | | AppointmentDO appointmentDO = appointmentMapper.getByApplyNo(createReqVO.getApplyNo()); |
| | | ApplicationTemplate app = new ApplicationTemplate(); |
| | | String action = "S0405"; |
| | | String message = app.getXML(createReqVO.getApplyNo(), "4", "取消检查", createReqVO.getOperater(), appointmentDO.getPatDeptCode(), appointmentDO.getPatDeptDesc(), appointmentDO.getPatWardCode(), appointmentDO.getPatWardDesc(), appointmentDO.getPatBedNo(), appointmentDO.getEpisodeId(), "" + appointmentDO.getBookSrc(), appointmentDO.getPatId(), appointmentDO.getPatName()); |
| | | String s = webServiceClient.callJHFWTYRK(action, "", message); |
| | | log.info("routineFinishWebServiceClient的返回值为:{}", s); |
| | | if (s.contains("更新成功")) { |
| | | //需要根据applyNo,将appiontment表里的status改成3 |
| | | appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4"); |
| | | if (cancelReqVO.getCheckType() != 100 && cancelReqVO.getCheckType() != 1000 && cancelReqVO.getCheckType() != 1100 && cancelReqVO.getCheckType() != 1400 && cancelReqVO.getCheckType() != 1500) { |
| | | AppointmentDO appointmentDO = appointmentMapper.getByApplyNo(createReqVO.getApplyNo()); |
| | | ApplicationTemplate app = new ApplicationTemplate(); |
| | | String action = "S0405"; |
| | | String message = app.getXML(createReqVO.getApplyNo(), "4", "取消检查", createReqVO.getOperater(), appointmentDO.getPatDeptCode(), appointmentDO.getPatDeptDesc(), appointmentDO.getPatWardCode(), appointmentDO.getPatWardDesc(), appointmentDO.getPatBedNo(), appointmentDO.getEpisodeId(), "" + appointmentDO.getBookSrc(), appointmentDO.getPatId(), appointmentDO.getPatName()); |
| | | String s = webServiceClient.callJHFWTYRK(action, "", message); |
| | | log.info("routineFinishWebServiceClient的返回值为:{}", s); |
| | | if (s.contains("更新成功")) { |
| | | //需要根据applyNo,将appiontment表里的status改成3 |
| | | appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4"); |
| | | } |
| | | } else { |
| | | //检查类型是床边的或常规的,需要根据applyNo,将appiontment表里的status改成7 |
| | | appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7"); |
| | | } |
| | | } |
| | | |
| | |
| | | jobRecordDO.setUpdateTime(LocalDateTime.now()); |
| | | jobRecordMapper.updateById(jobRecordDO); |
| | | } |
| | | QueueDO firstOnStageQueueItem = queueMapper.getBedFirstQueueItemByApplyNo(createReqVO.getApplyNo(), QueueStatusEnum.ONSTAGE.getStatus()); |
| | | // QueueStatusEnum.ONSTAGE => QueueStatusEnum.FINISH |
| | | firstOnStageQueueItem.setStatus(QueueStatusEnum.FINISH.getStatus()); // 默认状态 设置 |
| | | firstOnStageQueueItem.setUpdateTime(LocalDateTime.now()); |
| | | queueMapper.updateById(firstOnStageQueueItem); |
| | | return CommonResult.success(rent_id); |
| | | } |
| | | |