From afb3216a7809c452e0f50555eb52aa9bc985f66b Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 06 十一月 2025 17:49:10 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/java/com/smartor/service/impl/ServiceSLTDHealthcareRecordServiceImpl.java | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/smartor/src/main/java/com/smartor/service/impl/ServiceSLTDHealthcareRecordServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/ServiceSLTDHealthcareRecordServiceImpl.java
index 2c40db6..ced4367 100644
--- a/smartor/src/main/java/com/smartor/service/impl/ServiceSLTDHealthcareRecordServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/ServiceSLTDHealthcareRecordServiceImpl.java
@@ -441,11 +441,14 @@
if (Objects.isNull(dto)) continue;
PatArchive patArchive = processPatientArchive(dto, orgid);
PatMedOuthosp patMedOuthosp = buildPatMedOuthosp(dto, patArchive, orgid);
- //鏌ヨ褰撳墠鏂板鐨勯棬鎬ヨ瘖鏁版嵁锛屾槸鍚﹀湪杩囨浮琛ㄤ腑鏄惁瀛樺湪锛屽鏋滃瓨鍦紝灏变笉寰�闂ㄦ�ヨ瘖琛ㄩ噷鏂板浜�
- PatMedOuthospProvisional pmop = DtoConversionUtils.sourceToTarget(patMedOuthosp, PatMedOuthospProvisional.class);
+// //鏌ヨ褰撳墠鏂板鐨勯棬鎬ヨ瘖鏁版嵁锛屾槸鍚﹀湪杩囨浮琛ㄤ腑鏄惁瀛樺湪锛屽鏋滃瓨鍦紝灏变笉寰�闂ㄦ�ヨ瘖琛ㄩ噷鏂板浜�(杩欎釜鍏堜笉鍐欎簡锛屾娊绌轰簡鍐嶅啓)
+// PatMedOuthospProvisional pmop = DtoConversionUtils.sourceToTarget(patMedOuthosp, PatMedOuthospProvisional.class);
-
- patMedOuthospMapper.insertPatMedOuthosp(patMedOuthosp);
+ //鍏堟煡璇竴涓嬶紝鏄笉鏄凡缁忓瓨鍦ㄨ娴佹按鍙蜂簡锛屽鏋滃瓨鍦紝灏变笉鏂板浜�
+ PatMedOuthosp pmo2 = new PatMedOuthosp();
+ pmo2.setSerialnum(patMedOuthosp.getSerialnum());
+ List<PatMedOuthosp> patMedOuthosps = patMedOuthospMapper.selectPatMedOuthospList(pmo2);
+ if (CollectionUtils.isEmpty(patMedOuthosps)) patMedOuthospMapper.insertPatMedOuthosp(patMedOuthosp);
}
return true;
}
@@ -503,11 +506,14 @@
queryInhosp.setCampusid(dto.getCampusId());
queryInhosp.setInhospstate(cry);
log.info("----------------杩欓噷鐨勫叆鍙備负锛歿}", queryInhosp);
- List<PatMedInhosp> existingInhosps = patMedInhospService.selectPatMedInhospList(queryInhosp);
+ List<PatMedInhosp> existingInhosps = patMedInhospService.selectPatMedInhosp(queryInhosp);
if (cry.equals("0") && CollectionUtils.isNotEmpty(existingInhosps)) {
//鏂板杩囩殑鍏ラ櫌鏁版嵁锛屼笉鍐嶅鐞�
return;
+ } else if (cry.equals("1") && CollectionUtils.isNotEmpty(existingInhosps)) {
+ //鏂板杩囩殑鍑洪櫌鏁版嵁锛屼篃涓嶅啀澶勭悊
+ return;
}
log.info("----------------杩欓噷鐨勮繑鍙備负锛歿}", existingInhosps);
--
Gitblit v1.9.3