From 88c5064877fa22316d794c225fff3ceced4371f3 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期一, 03 三月 2025 20:03:43 +0800 Subject: [PATCH] 代码提交 --- ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java index ad7ae73..4a42a20 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java @@ -71,6 +71,9 @@ private IPatMedInhospService iPatMedInhospService; @Autowired + private IPatMedOperationService iPatMedOperationService; + + @Autowired private IServiceSubtaskService iServiceSubtaskService; @Autowired @@ -243,7 +246,7 @@ * 澶勭悊鎵嬫湳淇℃伅锛岃繘鍏ュ瓙浠诲姟琛� */ public void dealOperationInfo() { - iPatMedInhospService.dealOutHospInfo(); + iPatMedOperationService.dealOperationInfo(); } /** @@ -366,7 +369,8 @@ //绾歌川 } else if (descByCode.equals("寰俊灏忕▼搴�")) { //寰俊灏忕▼搴� - if (ivrTask1.getPatCycle() == 1) { + log.error("ivrTask1鐨勫�间负锛歿}", ivrTask1); + if (ObjectUtils.isNotEmpty(ivrTask1) && ivrTask1.getPatCycle() == 1) { //璇存槑璇ヤ换鍔$殑鎮h�呮槸寰幆鎵ц鐨� ServiceSubtaskVO serviceSubtaskVO = new ServiceSubtaskVO(); serviceSubtaskVO.setTaskid(ivrTask1.getTaskid()); @@ -620,7 +624,7 @@ patArchive.setSex(thiedInhospInfo.getPatiRecordGender().equals("鐢�") ? 1L : 2L); patArchive.setNation(thiedInhospInfo.getPatiNation()); patArchive.setNativePlace(thiedInhospInfo.getPatiNationality()); - patArchive.setPlaceOfResidence(thiedInhospInfo.getPatiHomeAddr()); + patArchive.setPlaceOfResidence(StringUtils.isNotEmpty(thiedInhospInfo.getPatiHomeAddr()) ? thiedInhospInfo.getPatiHomeAddr().replace("null", "") : ""); try { if (StringUtils.isNotEmpty(thiedInhospInfo.getPatiBirthday())) patArchive.setBirthdate(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(thiedInhospInfo.getPatiBirthday())); @@ -695,6 +699,7 @@ patMedInhosp.setLeavehospitaldistrictcode(thiedInhospInfo.getCurrWardId()); patMedInhosp.setLeavehospitaldistrictname(thiedInhospInfo.getCurrWardName()); patMedInhosp.setLeaveldeptid(thiedInhospInfo.getCurrDeptCode()); + patMedInhosp.setOrgid("1"); //濡傛灉鏄嚭闄紝鍏堥�氳繃鎮h�呯紪鍙峰拰娴佹按鍙峰幓鏌ヤ竴涓嬶紝鎮h�呮槸鍚﹀瓨鍦紝濡傛灉瀛樺湪锛屽垯杩涜淇敼 PatMedInhosp inhosp = new PatMedInhosp(); inhosp.setPatno(patArchive.getPatientno()); -- Gitblit v1.9.3