From d9281d43e27ab6c510d390ddb26eaffc8ccc1add Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 11 十一月 2026 14:04:52 +0800
Subject: [PATCH] 妇幼-补充住院随访档案生成日志、完成事件及自检文件
---
smartor/src/main/resources/mapper/smartor/PatMaternityArchiveDetailMapper.xml | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMaternityArchiveDetailMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMaternityArchiveDetailMapper.xml
index 895e675..7c2ba79 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMaternityArchiveDetailMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMaternityArchiveDetailMapper.xml
@@ -9,6 +9,9 @@
<result property="archiveid" column="archiveid"/>
<result property="archiveType" column="archive_type"/>
<result property="sourceType" column="source_type"/>
+ <result property="sourceBizId" column="source_biz_id"/>
+ <result property="sourceBizNo" column="source_biz_no"/>
+ <result property="sourceSubId" column="source_sub_id"/>
<result property="outhospno" column="outhospno"/>
<result property="inhospno" column="inhospno"/>
<result property="serialnum" column="serialnum"/>
@@ -67,6 +70,9 @@
archiveid,
archive_type,
source_type,
+ source_biz_id,
+ source_biz_no,
+ source_sub_id,
outhospno,
inhospno,
serialnum,
@@ -129,6 +135,9 @@
<if test="archiveid != null">and archiveid = #{archiveid}</if>
<if test="archiveType != null and archiveType != ''">and archive_type = #{archiveType}</if>
<if test="sourceType != null and sourceType != ''">and source_type = #{sourceType}</if>
+ <if test="sourceBizId != null">and source_biz_id = #{sourceBizId}</if>
+ <if test="sourceBizNo != null and sourceBizNo != ''">and source_biz_no = #{sourceBizNo}</if>
+ <if test="sourceSubId != null">and source_sub_id = #{sourceSubId}</if>
<if test="outhospno != null and outhospno != ''">and outhospno = #{outhospno}</if>
<if test="inhospno != null and inhospno != ''">and inhospno = #{inhospno}</if>
<if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if>
@@ -164,6 +173,7 @@
<select id="selectPatMaternityArchiveDetailById" parameterType="Long" resultMap="PatMaternityArchiveDetailResult">
<include refid="selectPatMaternityArchiveDetailVo"/>
where id = #{id}
+ and del_flag = '0'
</select>
<insert id="insertPatMaternityArchiveDetail" parameterType="com.smartor.domain.PatMaternityArchiveDetail"
@@ -173,6 +183,9 @@
<if test="archiveid != null">archiveid,</if>
<if test="archiveType != null">archive_type,</if>
<if test="sourceType != null">source_type,</if>
+ <if test="sourceBizId != null">source_biz_id,</if>
+ <if test="sourceBizNo != null">source_biz_no,</if>
+ <if test="sourceSubId != null">source_sub_id,</if>
<if test="outhospno != null">outhospno,</if>
<if test="inhospno != null">inhospno,</if>
<if test="serialnum != null">serialnum,</if>
@@ -229,6 +242,9 @@
<if test="archiveid != null">#{archiveid},</if>
<if test="archiveType != null">#{archiveType},</if>
<if test="sourceType != null">#{sourceType},</if>
+ <if test="sourceBizId != null">#{sourceBizId},</if>
+ <if test="sourceBizNo != null">#{sourceBizNo},</if>
+ <if test="sourceSubId != null">#{sourceSubId},</if>
<if test="outhospno != null">#{outhospno},</if>
<if test="inhospno != null">#{inhospno},</if>
<if test="serialnum != null">#{serialnum},</if>
@@ -289,6 +305,9 @@
<if test="archiveid != null">archiveid = #{archiveid},</if>
<if test="archiveType != null">archive_type = #{archiveType},</if>
<if test="sourceType != null">source_type = #{sourceType},</if>
+ <if test="sourceBizId != null">source_biz_id = #{sourceBizId},</if>
+ <if test="sourceBizNo != null">source_biz_no = #{sourceBizNo},</if>
+ <if test="sourceSubId != null">source_sub_id = #{sourceSubId},</if>
<if test="outhospno != null">outhospno = #{outhospno},</if>
<if test="inhospno != null">inhospno = #{inhospno},</if>
<if test="serialnum != null">serialnum = #{serialnum},</if>
@@ -358,4 +377,11 @@
#{id}
</foreach>
</update>
+
+ <update id="deletePatMaternityArchiveDetailByArchiveIds" parameterType="String">
+ update pat_maternity_archive_detail set del_flag = '1' where archiveid in
+ <foreach item="archiveId" collection="array" open="(" separator="," close=")">
+ #{archiveId}
+ </foreach>
+ </update>
</mapper>
--
Gitblit v1.9.3