From 569e8be78cc357147a403daa1af8dfe6dd7d5308 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 18 八月 2026 18:22:10 +0800
Subject: [PATCH] 1.处理药品宣教的问题 2.处理南华满意度的功能 3.处理随访导出的问题 4.处理南华短信的问题
---
smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml | 62 +++++++++++++++++++++++++++++--
1 files changed, 58 insertions(+), 4 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
index e6c33b7..cd970f4 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
@@ -29,11 +29,17 @@
<result property="pid" column="pid"/>
<result property="opercheckFlag" column="opercheck_flag"/>
<result property="longTaskReason" column="long_task_reason"/>
+ <result property="inhospstate" column="inhospstate"/>
+ <result property="serialnum" column="serialnum"/>
<result property="deptcode" column="deptcode"/>
<result property="deptname" column="deptname"/>
<result property="hospitaldistrictcode" column="hospitaldistrictcode"/>
<result property="hospitaldistrictname" column="hospitaldistrictname"/>
+ <result property="leaveldeptcode" column="leaveldeptcode"/>
+ <result property="leaveldeptname" column="leaveldeptname"/>
+ <result property="leavehospitaldistrictcode" column="leavehospitaldistrictcode"/>
+ <result property="leavehospitaldistrictname" column="leavehospitaldistrictname"/>
<result property="patid" column="patid"/>
<result property="drcode" column="drcode"/>
<result property="drname" column="drname"/>
@@ -42,7 +48,7 @@
</resultMap>
<sql id="selectPatMedOperationItemVo">
- select id, operationid, opid, opcode, opdesc, main_flag, incitypecode, incitypedesc, oplevelcode, opleveldesc, opposition, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pguid, guid, pid, opercheck_flag, long_task_reason
+ select id, operationid, opid, opcode, opdesc, main_flag, incitypecode, incitypedesc, oplevelcode, opleveldesc, opposition, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pguid, guid, pid, opercheck_flag, long_task_reason, inhospstate, serialnum
from pat_med_operation_item
</sql>
@@ -97,6 +103,12 @@
</if>
<if test="pid != null ">
and pid = #{pid}
+ </if>
+ <if test="inhospstate != null and inhospstate != ''">
+ and inhospstate = #{inhospstate}
+ </if>
+ <if test="serialnum != null and serialnum != ''">
+ and serialnum = #{serialnum}
</if>
</select>
@@ -155,6 +167,10 @@
</if>
<if test="longTaskReason != null">long_task_reason,
</if>
+ <if test="inhospstate != null">inhospstate,
+ </if>
+ <if test="serialnum != null">serialnum,
+ </if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="operationid != null">#{operationid},
@@ -202,6 +218,10 @@
<if test="opercheckFlag != null">#{opercheckFlag},
</if>
<if test="longTaskReason != null">#{longTaskReason},
+ </if>
+ <if test="inhospstate != null">#{inhospstate},
+ </if>
+ <if test="serialnum != null">#{serialnum},
</if>
</trim>
</insert>
@@ -278,6 +298,12 @@
<if test="longTaskReason != null">long_task_reason =
#{longTaskReason},
</if>
+ <if test="inhospstate != null">inhospstate =
+ #{inhospstate},
+ </if>
+ <if test="serialnum != null">serialnum =
+ #{serialnum},
+ </if>
</trim>
where id = #{id}
</update>
@@ -331,6 +357,10 @@
</if>
<if test="longTaskReason != null">long_task_reason,
</if>
+ <if test="inhospstate != null">inhospstate,
+ </if>
+ <if test="serialnum != null">serialnum,
+ </if>
</trim>
values
<foreach item="item" index="index" collection="list" separator=",">
@@ -381,6 +411,10 @@
</if>
<if test="longTaskReason != null">#{item.longTaskReason},
</if>
+ <if test="inhospstate != null">#{item.inhospstate},
+ </if>
+ <if test="serialnum != null">#{item.serialnum},
+ </if>
</trim>
</foreach>
</insert>
@@ -415,14 +449,18 @@
pmoi.incitypedesc, pmoi.oplevelcode, pmoi.opleveldesc, pmoi.opposition, pmoi.del_flag, pmoi.update_by,
pmoi.update_time, pmoi.create_by, pmoi.create_time, pmoi.isupload, pmoi.upload_time, pmoi.orgid,
pmoi.pguid, pmoi.guid, pmoi.pid, pmoi.opercheck_flag, pmoi.long_task_reason,
- pmo.deptcode, pmo.deptname, pmo.hospitaldistrictcode, pmo.hospitaldistrictname, pmo.patid,
- pmo.drcode, pmo.drname, pmo.nurse_id, pmo.nurse_name
+ pmo.deptcode, pmo.deptname, pmo.hospitaldistrictcode, pmo.hospitaldistrictname,
+ pmo.leaveldeptcode, pmo.leaveldeptname, pmo.leavehospitaldistrictcode, pmo.leavehospitaldistrictname, pmo.patid,
+ pmo.drcode, pmo.drname, pmo.nurse_id, pmo.nurse_name,
+ pmo.inhospstate, pmo.serialnum
from pat_med_operation pmo
join pat_med_operation_item pmoi
- on pmoi.opcode = pmo.opcode
+ on pmoi.opid = pmo.opid
where
pmo.del_flag = '0'
and pmoi.del_flag = '0'
+ and pmo.opid is not null
+ and pmoi.opid is not null
<if test="operationid != null ">
and pmoi.operationid = #{operationid}
</if>
@@ -471,6 +509,12 @@
<if test="pid != null ">
and pmoi.pid = #{pid}
</if>
+ <if test="inhospstate != null and inhospstate != ''">
+ and pmo.inhospstate = #{inhospstate}
+ </if>
+ <if test="serialnum != null and serialnum != ''">
+ and pmo.serialnum = #{serialnum}
+ </if>
<if test="deptcode != null and deptcode != ''">
and pmo.deptcode = #{deptcode}
</if>
@@ -500,6 +544,16 @@
#{wardCode}
</foreach>
</if>
+ <if test="opLevelCodes != null and opLevelCodes.size()>0">
+ AND pmoi.oplevelcode IN
+ <foreach collection="opLevelCodes" item="levelCode" open="(" separator=","
+ close=")">
+ #{levelCode}
+ </foreach>
+ </if>
+ <if test="opercheckFlag != null">
+ and pmoi.opercheck_flag = #{opercheckFlag}
+ </if>
</select>
</mapper>
--
Gitblit v1.9.3