From a2a840d4969d680b30eeec184a7059fef64d0b84 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期五, 04 七月 2025 21:39:14 +0800 Subject: [PATCH] 代码提交 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devrent/DevRentServiceImpl.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 47 insertions(+), 8 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devrent/DevRentServiceImpl.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devrent/DevRentServiceImpl.java index 784eb6e..5d9f40e 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devrent/DevRentServiceImpl.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devrent/DevRentServiceImpl.java @@ -36,6 +36,7 @@ import java.time.LocalDate; import java.time.LocalDateTime; import java.util.ArrayList; +import java.util.Date; import java.util.List; import static cn.lihu.jh.framework.common.exception.util.ServiceExceptionUtil.exception; @@ -167,16 +168,25 @@ 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 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("鏇存柊鎴愬姛")) { //闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚3 - appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4"); + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "3", new Date()); } } else { //妫�鏌ョ被鍨嬫槸搴婅竟鐨勬垨甯歌鐨勶紝闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚7 - appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7"); + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7", null); + } + } else { + if (createReqVO.getCheckType() != 100 && createReqVO.getCheckType() != 1000 && createReqVO.getCheckType() != 1100 && createReqVO.getCheckType() != 1400 && createReqVO.getCheckType() != 1500) { + //闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚3 + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4", null); + + } else { + //妫�鏌ョ被鍨嬫槸搴婅竟鐨勬垨甯歌鐨勶紝闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚7 + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7", null); } } @@ -214,8 +224,11 @@ log.info("webservice鐨勮繑鍥炲�间负锛歿}", s); if (s.contains("鏇存柊鎴愬姛")) { //闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚3 - appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "3"); + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "3", new Date()); } + } else { + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "3", new Date()); + } List<Integer> jobTypeList = new ArrayList<Integer>(); jobTypeList.add(DevRentStateEnum.RECEIVED.getState()); @@ -485,11 +498,20 @@ log.info("routineFinishWebServiceClient鐨勮繑鍥炲�间负锛歿}", s); if (s.contains("鏇存柊鎴愬姛")) { //闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚3 - appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4"); + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4", null); } } else { //妫�鏌ョ被鍨嬫槸搴婅竟鐨勬垨甯歌鐨勶紝闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚7 - appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7"); + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7", null); + } + } else { + if (cancelReqVO.getCheckType() != 100 && cancelReqVO.getCheckType() != 1000 && cancelReqVO.getCheckType() != 1100 && cancelReqVO.getCheckType() != 1400 && cancelReqVO.getCheckType() != 1500) { + //闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚3 + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4", null); + + } else { + //妫�鏌ョ被鍨嬫槸搴婅竟鐨勬垨甯歌鐨勶紝闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚7 + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7", null); } } @@ -567,7 +589,16 @@ log.info("routineFinishWebServiceClient鐨勮繑鍥炲�间负锛歿}", s); if (s.contains("鏇存柊鎴愬姛")) { //闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚3 - appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4"); + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4", null); + } + } else { + if (cancelReqVO.getCheckType() != 100 && cancelReqVO.getCheckType() != 1000 && cancelReqVO.getCheckType() != 1100 && cancelReqVO.getCheckType() != 1400 && cancelReqVO.getCheckType() != 1500) { + //闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚3 + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4", null); + + } else { + //妫�鏌ョ被鍨嬫槸搴婅竟鐨勬垨甯歌鐨勶紝闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚7 + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7", null); } } @@ -641,7 +672,15 @@ log.info("routineFinishWebServiceClient鐨勮繑鍥炲�间负锛歿}", s); if (s.contains("鏇存柊鎴愬姛")) { //闇�瑕佹牴鎹產pplyNo,灏哸ppiontment琛ㄩ噷鐨剆tatus鏀规垚3 - appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4"); + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4", null); + } + } else { + //杩欓噷鏄祴璇曟湰鍦颁慨鏀� + if (cancelReqVO.getCheckType() != 100 && cancelReqVO.getCheckType() != 1000 && cancelReqVO.getCheckType() != 1100 && cancelReqVO.getCheckType() != 1400 && cancelReqVO.getCheckType() != 1500) { + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "4", null); + + } else { + appointmentMapper.updateStatusByApplyNo(createReqVO.getApplyNo(), "7", null); } } -- Gitblit v1.9.3