From 6659135780e718758417efde4c8c351c69e3755b Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 11 十二月 2025 15:52:19 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml | 97 ++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 93 insertions(+), 4 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
index 50b0bf2..68bc33f 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
@@ -39,6 +39,7 @@
<result property="idcardno" column="idcardno"/>
<result property="remark" column="remark"/>
<result property="fudate" column="fudate"/>
+ <result property="serverState" column="server_state"/>
<result property="campusid" column="campusid"/>
</resultMap>
@@ -46,6 +47,7 @@
select id,
outhospno,
campusid,
+ server_state,
diagcheck_flag,
patno,
remark,
@@ -87,6 +89,7 @@
pmo.campusid,
pmo.remark,
pmo.fudate,
+ pmo.server_state,
pmo.outhospno,
pmo.diagcheck_flag,
pmo.patno,
@@ -121,19 +124,19 @@
<where>
pmo.del_flag=0
<if test="orgid != null ">and pmo.orgid = #{orgid}</if>
+ <if test="serialnum != null ">and pmo.serialnum = #{serialnum}</if>
+ <if test="serverState != null ">and pmo.server_state = #{serverState}</if>
<if test="hospitalname != null and hospitalname != ''">and pmo.hospitalname like concat('%',
#{hospitalname},
'%')
</if>
<if test="deptcodes != null and deptcodes.size()>0">
- AND pmo.deptcode IN
+ AND pmo.deptcode IN
<foreach collection="deptcodes" item="deptcode" open="(" separator=","
close=")">
#{deptcode}
</foreach>
</if>
-
-
<if test="deptname != null and deptname != ''">and pmo.deptname like concat('%', #{deptname}, '%')</if>
<if test="drname != null and drname != ''">and pmo.drname like concat('%', #{drname}, '%')</if>
<if test="patname != null and patname != ''">and pmo.patname like concat('%', #{patname}, '%')</if>
@@ -196,6 +199,7 @@
<if test="fuflag != null">fuflag,</if>
<if test="fudate != null">fudate,</if>
<if test="campusid != null">campusid,</if>
+ <if test="serverState != null">server_state,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="serialnum != null">#{serialnum},</if>
@@ -231,6 +235,7 @@
<if test="fuflag != null">#{fuflag},</if>
<if test="fudate != null">#{fudate},</if>
<if test="campusid != null">#{campusid},</if>
+ <if test="serverState != null">#{serverState},</if>
</trim>
</insert>
@@ -269,6 +274,7 @@
fuflag,
fudate,
campusid,
+ server_state,
remark)
values
<foreach collection="list" item="item" separator=",">
@@ -305,6 +311,85 @@
#{item.fuflag},
#{item.fudate},
#{item.campusid},
+ #{item.serverState},
+ #{item.remark}
+ )
+ </foreach>
+ </insert>
+
+ <insert id="batchInsertIgnore">
+ insert ignore into pat_med_outhosp
+ (
+ serialnum,
+ patid,
+ hospitalname,
+ hospitalcode,
+ icd10code,
+ diagname,
+ deptcode,
+ deptname,
+ drcode,
+ drname,
+ admitdate,
+ orgid,
+ del_flag,
+ update_by,
+ update_time,
+ create_by,
+ create_time,
+ isupload,
+ upload_time,
+ schemestatus,
+ deptid,
+ schemetime,
+ hpi,
+ mainsuit,
+ outhospno,
+ patname,
+ guid,
+ patno,
+ diagcheck_flag,
+ fuflag,
+ fudate,
+ campusid,
+ server_state,
+ remark)
+ values
+ <foreach collection="list" item="item" separator=",">
+ (
+ #{item.serialnum},
+ #{item.patid},
+ #{item.hospitalname},
+ #{item.hospitalcode},
+ #{item.icd10code},
+ #{item.diagname},
+ #{item.deptcode},
+ #{item.deptname},
+ #{item.drcode},
+ #{item.drname},
+ #{item.admitdate},
+ #{item.orgid},
+ #{item.delFlag},
+ #{item.updateBy},
+ #{item.updateTime},
+ #{item.createBy},
+ #{item.createTime},
+ #{item.isupload},
+ #{item.uploadTime},
+ #{item.schemestatus},
+ #{item.deptid},
+ #{item.schemetime},
+ #{item.hpi},
+ #{item.mainsuit},
+ #{item.outhospno},
+ #{item.patname},
+ #{item.guid},
+ #{item.patno},
+ #{item.diagcheckFlag},
+ #{item.fuflag},
+ #{item.fudate},
+ #{item.campusid},
+ #{item.serverState},
#{item.remark}
)
</foreach>
@@ -347,6 +432,7 @@
<if test="fuflag != null">fuflag = #{fuflag},</if>
<if test="fudate != null">fudate = #{fudate},</if>
<if test="campusid != null">campusid = #{campusid},</if>
+ <if test="serverState != null">server_state = #{serverState},</if>
</trim>
where id = #{id}
</update>
@@ -421,9 +507,12 @@
FROM pat_med_outhosp
<where>
del_flag=0
- <if test="inhospstate != inhospstate">
+ <if test="inhospstate != null">
and inhospstate= #{inhospstate}
</if>
+ <if test="serverState != null">
+ and server_state= #{inhospstate}
+ </if>
<if test="deptcodeList != null and deptcodeList.size()>0">
and deptcode in
<foreach collection="deptcodeList" item="deptcode" open="(" separator="," close=")">
--
Gitblit v1.9.3