From c5eaceb69bb9360f6bd802e4796b8023afa3c581 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 07 八月 2025 09:41:00 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/java/com/smartor/service/impl/ServiceExternalServiceImpl.java | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/smartor/src/main/java/com/smartor/service/impl/ServiceExternalServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/ServiceExternalServiceImpl.java index b92d0c0..16b192f 100644 --- a/smartor/src/main/java/com/smartor/service/impl/ServiceExternalServiceImpl.java +++ b/smartor/src/main/java/com/smartor/service/impl/ServiceExternalServiceImpl.java @@ -24,10 +24,7 @@ import java.time.Period; import java.time.ZoneId; import java.time.temporal.ChronoUnit; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.stream.Collectors; /** @@ -286,6 +283,8 @@ externalInHospPatientInfo.setZhuZhiYSID(externalInDeptPatientInfo.getZhuZhiYSID()); externalInHospPatientInfo.setZhuZhiYSXM(externalInDeptPatientInfo.getZhuZhiYSXM()); externalInHospPatientInfo.setRuYuanSJ(externalInDeptPatientInfo.getRuYuanSJ()); + externalInHospPatientInfo.setJingGuanYSID(externalInDeptPatientInfo.getJingGuanYSID()); + externalInHospPatientInfo.setJingGuanYSXM(externalInDeptPatientInfo.getJingGuanYSXM()); externalInHospPatientInfo.setLianXiDH(ObjectUtils.isNotEmpty(BingRenXX.get("LianXiDH")) ? BingRenXX.get("LianXiDH").toString() : null); externalInHospPatientInfo.setDangQianCWID(ObjectUtils.isNotEmpty(BingRenXX.get("DangQianCWID")) ? BingRenXX.get("DangQianCWID").toString() : null); externalInHospPatientInfo.setDangQianCWMC(ObjectUtils.isNotEmpty(BingRenXX.get("DangQianCWMC")) ? BingRenXX.get("DangQianCWMC").toString() : null); @@ -583,7 +582,8 @@ } } try { - patMedInhosp1.setFudate(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(SuiFangJH.get("SuiFangRQ").toString())); + if (!Objects.isNull(SuiFangJH.get("SuiFangRQ"))) + patMedInhosp1.setFudate(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(SuiFangJH.get("SuiFangRQ").toString())); } catch (ParseException e) { e.printStackTrace(); } @@ -902,6 +902,7 @@ patMedOuthosp.setAdmitdate(externalJZInfo.getJiuZhenRQ()); patMedOuthosp.setOrgid(FaSongJGID); patMedOuthosp.setHospitalname(FaSongJGMC); + patMedOuthosp.setIdcardno(patArchive.getIdcardno()); //杩欎釜闇�瑕佺瓑HIS閭h竟鍛婅瘔鍙栧摢涓瓧娈碉紝鐜板湪杩樻槸涓嶅鐨� patMedOuthosp.setFudate(externalJZInfo.getSfrq()); @@ -943,7 +944,7 @@ } //鍏堥�氳繃韬唤璇佸拰绉戝鏌ヨ璇ユ偅鑰呮槸鍚︽湁闇�瑕侀殢璁跨殑(鏅畞鎻愬嚭鏉ョ殑) - if (patMedOuthosp.getOrgid().equals("47255004333112711A1001")) { + if (patMedOuthosp.getOrgid().equals("47255004333112711A1001") && StringUtils.isNotEmpty(patMedOuthosp.getIdcardno()) && StringUtils.isNotEmpty(patMedOuthosp.getDeptcode())) { ServiceSubtaskVO serviceSubtaskVO = new ServiceSubtaskVO(); serviceSubtaskVO.setSfzh(patMedOuthosp.getIdcardno()); serviceSubtaskVO.setDeptcode(patMedOuthosp.getDeptcode()); @@ -953,6 +954,7 @@ for (ServiceSubtask serviceSubtask : serviceSubtaskList) { serviceSubtask.setSendstate(6L); serviceSubtask.setRemark("鎮h�呭凡缁忓洖鏉ュ璇�"); + serviceSubtask.setUpdateTime(new Date()); serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); } } @@ -1363,6 +1365,8 @@ patMedInhosp.setDrcode(externalInHospPatientInfo.getZhuZhiYSID()); patMedInhosp.setNurseId(externalInHospPatientInfo.getZeRenHSID()); patMedInhosp.setNurseName(externalInHospPatientInfo.getZeRenHSXM()); + patMedInhosp.setManagementDoctor(externalInHospPatientInfo.getJingGuanYSXM()); + patMedInhosp.setManagementDoctorCode(externalInHospPatientInfo.getJingGuanYSID()); } if (ObjectUtils.isNotEmpty(externalInHospPatientDiagnoseInfo)) { // patMedInhosp.setIcd10code(StringUtils.isNotEmpty(patMedInhosp.getIcd10code()) ? patMedInhosp.getIcd10code() + "," + externalInHospPatientDiagnoseInfo.getZhenDuanID() : externalInHospPatientDiagnoseInfo.getZhenDuanID()); -- Gitblit v1.9.3