From 2d5f3bc910e22d3ffd52cd5081daecdb5916ab9c Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期五, 09 十月 2026 15:25:09 +0800
Subject: [PATCH] 【丽水】妇幼档案拆分为妇科/儿科主表与详情表并完成CRUD
---
smartor/src/main/resources/mapper/smartor/PatMaternityArchiveMapper.xml | 82 ++++++++--------------------------------
1 files changed, 17 insertions(+), 65 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMaternityChildArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMaternityArchiveMapper.xml
similarity index 74%
rename from smartor/src/main/resources/mapper/smartor/PatMaternityChildArchiveMapper.xml
rename to smartor/src/main/resources/mapper/smartor/PatMaternityArchiveMapper.xml
index 8d915e9..dac32bf 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMaternityChildArchiveMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMaternityArchiveMapper.xml
@@ -2,11 +2,10 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.smartor.mapper.PatMaternityChildArchiveMapper">
+<mapper namespace="com.smartor.mapper.PatMaternityArchiveMapper">
- <resultMap type="com.smartor.domain.PatMaternityChildArchive" id="PatMaternityChildArchiveResult">
+ <resultMap type="com.smartor.domain.PatMaternityArchive" id="PatMaternityArchiveResult">
<result property="id" column="id"/>
- <result property="type" column="type"/>
<result property="archiveType" column="archive_type"/>
<result property="outhospno" column="outhospno"/>
<result property="inhospno" column="inhospno"/>
@@ -33,14 +32,7 @@
<result property="icd10code" column="icd10code"/>
<result property="diagname" column="diagname"/>
<result property="pregnancySituation" column="pregnancy_situation"/>
- <result property="appointmentSituation" column="appointment_situation"/>
<result property="closeStatus" column="close_status"/>
- <result property="nutritionIcd10Code" column="nutrition_icd10_code"/>
- <result property="nutritionDiagName" column="nutrition_diag_name"/>
- <result property="gestationalWeek" column="gestational_week"/>
- <result property="birthWeight" column="birth_weight"/>
- <result property="highRiskChildType" column="high_risk_child_type"/>
- <result property="highRiskChildName" column="high_risk_child_name"/>
<result property="registerUser" column="register_user"/>
<result property="remark" column="remark"/>
<result property="orgid" column="orgid"/>
@@ -52,9 +44,8 @@
<result property="delFlag" column="del_flag"/>
</resultMap>
- <sql id="selectPatMaternityChildArchiveVo">
+ <sql id="selectPatMaternityArchiveVo">
select id,
- type,
archive_type,
outhospno,
inhospno,
@@ -81,14 +72,7 @@
icd10code,
diagname,
pregnancy_situation,
- appointment_situation,
close_status,
- nutrition_icd10_code,
- nutrition_diag_name,
- gestational_week,
- birth_weight,
- high_risk_child_type,
- high_risk_child_name,
register_user,
remark,
orgid,
@@ -98,15 +82,14 @@
create_by,
create_time,
del_flag
- from pat_maternity_child_archive
+ from pat_maternity_archive
</sql>
- <select id="selectPatMaternityChildArchiveList" parameterType="com.smartor.domain.PatMaternityChildArchive"
- resultMap="PatMaternityChildArchiveResult">
- <include refid="selectPatMaternityChildArchiveVo"/>
+ <select id="selectPatMaternityArchiveList" parameterType="com.smartor.domain.PatMaternityArchive"
+ resultMap="PatMaternityArchiveResult">
+ <include refid="selectPatMaternityArchiveVo"/>
where 1=1
and del_flag = '0'
- <if test="type != null and type != ''">and type = #{type}</if>
<if test="archiveType != null and archiveType != ''">and archive_type = #{archiveType}</if>
<if test="outhospno != null and outhospno != ''">and outhospno = #{outhospno}</if>
<if test="inhospno != null and inhospno != ''">and inhospno = #{inhospno}</if>
@@ -132,14 +115,7 @@
<if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</if>
<if test="diagname != null and diagname != ''">and diagname like concat('%', #{diagname}, '%')</if>
<if test="pregnancySituation != null and pregnancySituation != ''">and pregnancy_situation = #{pregnancySituation}</if>
- <if test="appointmentSituation != null and appointmentSituation != ''">and appointment_situation = #{appointmentSituation}</if>
<if test="closeStatus != null and closeStatus != ''">and close_status = #{closeStatus}</if>
- <if test="nutritionIcd10Code != null and nutritionIcd10Code != ''">and nutrition_icd10_code = #{nutritionIcd10Code}</if>
- <if test="nutritionDiagName != null and nutritionDiagName != ''">and nutrition_diag_name like concat('%', #{nutritionDiagName}, '%')</if>
- <if test="gestationalWeek != null">and gestational_week = #{gestationalWeek}</if>
- <if test="birthWeight != null">and birth_weight = #{birthWeight}</if>
- <if test="highRiskChildType != null and highRiskChildType != ''">and high_risk_child_type = #{highRiskChildType}</if>
- <if test="highRiskChildName != null and highRiskChildName != ''">and high_risk_child_name like concat('%', #{highRiskChildName}, '%')</if>
<if test="registerUser != null and registerUser != ''">and register_user = #{registerUser}</if>
<if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
<if test="campusid != null and campusid != ''">and campusid = #{campusid}</if>
@@ -151,16 +127,15 @@
</if>
</select>
- <select id="selectPatMaternityChildArchiveById" parameterType="Long" resultMap="PatMaternityChildArchiveResult">
- <include refid="selectPatMaternityChildArchiveVo"/>
+ <select id="selectPatMaternityArchiveById" parameterType="Long" resultMap="PatMaternityArchiveResult">
+ <include refid="selectPatMaternityArchiveVo"/>
where id = #{id}
</select>
- <insert id="insertPatMaternityChildArchive" parameterType="com.smartor.domain.PatMaternityChildArchive"
+ <insert id="insertPatMaternityArchive" parameterType="com.smartor.domain.PatMaternityArchive"
useGeneratedKeys="true" keyProperty="id">
- insert into pat_maternity_child_archive
+ insert into pat_maternity_archive
<trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="type != null">type,</if>
<if test="archiveType != null">archive_type,</if>
<if test="outhospno != null">outhospno,</if>
<if test="inhospno != null">inhospno,</if>
@@ -187,14 +162,7 @@
<if test="icd10code != null">icd10code,</if>
<if test="diagname != null">diagname,</if>
<if test="pregnancySituation != null">pregnancy_situation,</if>
- <if test="appointmentSituation != null">appointment_situation,</if>
<if test="closeStatus != null">close_status,</if>
- <if test="nutritionIcd10Code != null">nutrition_icd10_code,</if>
- <if test="nutritionDiagName != null">nutrition_diag_name,</if>
- <if test="gestationalWeek != null">gestational_week,</if>
- <if test="birthWeight != null">birth_weight,</if>
- <if test="highRiskChildType != null">high_risk_child_type,</if>
- <if test="highRiskChildName != null">high_risk_child_name,</if>
<if test="registerUser != null">register_user,</if>
<if test="remark != null">remark,</if>
<if test="orgid != null">orgid,</if>
@@ -206,7 +174,6 @@
<if test="delFlag != null and delFlag != ''">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="type != null">#{type},</if>
<if test="archiveType != null">#{archiveType},</if>
<if test="outhospno != null">#{outhospno},</if>
<if test="inhospno != null">#{inhospno},</if>
@@ -233,14 +200,7 @@
<if test="icd10code != null">#{icd10code},</if>
<if test="diagname != null">#{diagname},</if>
<if test="pregnancySituation != null">#{pregnancySituation},</if>
- <if test="appointmentSituation != null">#{appointmentSituation},</if>
<if test="closeStatus != null">#{closeStatus},</if>
- <if test="nutritionIcd10Code != null">#{nutritionIcd10Code},</if>
- <if test="nutritionDiagName != null">#{nutritionDiagName},</if>
- <if test="gestationalWeek != null">#{gestationalWeek},</if>
- <if test="birthWeight != null">#{birthWeight},</if>
- <if test="highRiskChildType != null">#{highRiskChildType},</if>
- <if test="highRiskChildName != null">#{highRiskChildName},</if>
<if test="registerUser != null">#{registerUser},</if>
<if test="remark != null">#{remark},</if>
<if test="orgid != null">#{orgid},</if>
@@ -253,10 +213,9 @@
</trim>
</insert>
- <update id="updatePatMaternityChildArchive" parameterType="com.smartor.domain.PatMaternityChildArchive">
- update pat_maternity_child_archive
+ <update id="updatePatMaternityArchive" parameterType="com.smartor.domain.PatMaternityArchive">
+ update pat_maternity_archive
<trim prefix="SET" suffixOverrides=",">
- <if test="type != null">type = #{type},</if>
<if test="archiveType != null">archive_type = #{archiveType},</if>
<if test="outhospno != null">outhospno = #{outhospno},</if>
<if test="inhospno != null">inhospno = #{inhospno},</if>
@@ -283,14 +242,7 @@
<if test="icd10code != null">icd10code = #{icd10code},</if>
<if test="diagname != null">diagname = #{diagname},</if>
<if test="pregnancySituation != null">pregnancy_situation = #{pregnancySituation},</if>
- <if test="appointmentSituation != null">appointment_situation = #{appointmentSituation},</if>
<if test="closeStatus != null">close_status = #{closeStatus},</if>
- <if test="nutritionIcd10Code != null">nutrition_icd10_code = #{nutritionIcd10Code},</if>
- <if test="nutritionDiagName != null">nutrition_diag_name = #{nutritionDiagName},</if>
- <if test="gestationalWeek != null">gestational_week = #{gestationalWeek},</if>
- <if test="birthWeight != null">birth_weight = #{birthWeight},</if>
- <if test="highRiskChildType != null">high_risk_child_type = #{highRiskChildType},</if>
- <if test="highRiskChildName != null">high_risk_child_name = #{highRiskChildName},</if>
<if test="registerUser != null">register_user = #{registerUser},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="orgid != null">orgid = #{orgid},</if>
@@ -304,16 +256,16 @@
where id = #{id}
</update>
- <update id="deletePatMaternityChildArchiveById" parameterType="Long">
- update pat_maternity_child_archive
+ <update id="deletePatMaternityArchiveById" parameterType="Long">
+ update pat_maternity_archive
<trim prefix="SET" suffixOverrides=",">
del_flag = '1'
</trim>
where id = #{id}
</update>
- <update id="deletePatMaternityChildArchiveByIds" parameterType="String">
- update pat_maternity_child_archive set del_flag = '1' where id in
+ <update id="deletePatMaternityArchiveByIds" parameterType="String">
+ update pat_maternity_archive set del_flag = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
--
Gitblit v1.9.3