From 122117505dc4e78078aad87fc8753951bdd0a05d Mon Sep 17 00:00:00 2001 From: wyb <1977763549@qq.com> Date: Fri, 7 Nov 2025 15:29:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=A2=85=E5=B7=9E=E4=B8=89=E9=99=A2?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E4=BA=A4=E6=B7=BB=E5=8A=A0=E6=82=A3=E8=80=85?= =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E6=AC=A1=E9=80=80=E5=9B=9E=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=8F=90=E4=BA=A4=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../busservice/impl/MzsyBusinessServiceImpl.java | 12 ++++++++++++ .../docus/server/message/mapper/TBasicMapper.java | 3 +++ src/main/resources/mapper/TBasicMapper.xml | 13 +++++++++++++ 3 files changed, 28 insertions(+) diff --git a/src/main/java/com/docus/server/message/busservice/impl/MzsyBusinessServiceImpl.java b/src/main/java/com/docus/server/message/busservice/impl/MzsyBusinessServiceImpl.java index 9e0ff5a..5434e2c 100644 --- a/src/main/java/com/docus/server/message/busservice/impl/MzsyBusinessServiceImpl.java +++ b/src/main/java/com/docus/server/message/busservice/impl/MzsyBusinessServiceImpl.java @@ -29,6 +29,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.time.LocalDateTime; import java.util.Date; import java.util.List; @@ -87,6 +88,7 @@ public class MzsyBusinessServiceImpl implements MzsyBusinessService { nodeLogAddDTO.setCreater(submitName+"("+submitNo+")"); nodeLogAddDTO.setCreaterName(submitName+"("+submitNo+")"); hospitalSubmitNodeServiceApi.addLog(nodeLogAddDTO); + updateBackLogSubmitTime(patientIds.get(0)); meiZhouSyRpc.archiveAndRecall(archiveRequest(patientIds.get(0),"EMR")); return new MessageResponse(ResultCode.SUCCESS.getCode(), success()); } catch (BaseException baseException) { @@ -105,6 +107,7 @@ public class MzsyBusinessServiceImpl implements MzsyBusinessService { } + @Override public MessageResponse nurseSubmitHandle(Message message) { try { @@ -151,6 +154,15 @@ public class MzsyBusinessServiceImpl implements MzsyBusinessService { } } + private void updateBackLogSubmitTime(String patientId) { + Long id = tBasicMapper.getLastBackLogId(patientId); + if(id != null){ + String time = Func.formatDateTime(LocalDateTime.now()); + tBasicMapper.updateBackLogSubmitTime(id,time); + } + } + + private void verifyPatientIds(List patientIds) { if (Func.isEmpty(patientIds)) { throw new BaseException("系统无此患者!"); diff --git a/src/main/java/com/docus/server/message/mapper/TBasicMapper.java b/src/main/java/com/docus/server/message/mapper/TBasicMapper.java index a635898..56a57dc 100644 --- a/src/main/java/com/docus/server/message/mapper/TBasicMapper.java +++ b/src/main/java/com/docus/server/message/mapper/TBasicMapper.java @@ -165,4 +165,7 @@ public interface TBasicMapper { String getPatientIdBySdRyIndex(@Param("sdRyIndex")String sdRyIndex); + Long getLastBackLogId(@Param("patientId") String patientId); + + int updateBackLogSubmitTime(@Param("id") Long id,@Param("time") String time); } diff --git a/src/main/resources/mapper/TBasicMapper.xml b/src/main/resources/mapper/TBasicMapper.xml index 1ed52c0..560557d 100644 --- a/src/main/resources/mapper/TBasicMapper.xml +++ b/src/main/resources/mapper/TBasicMapper.xml @@ -48,6 +48,11 @@ `ward_name`=#{wardCodeName} where patient_id=#{patientId} + + update docus_medicalrecord.cqc_back_info_log + set second_submit_time = #{time} + where id= #{id} + +