From 6d51501ca93f5bf46759f851988650477cf32e6c Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 12 六月 2024 18:02:45 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
index 063d6c9..cd627b7 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -44,6 +44,8 @@
<result property="deptid" column="deptid" />
<result property="leaveldeptid" column="leaveldeptid" />
<result property="schemetime" column="schemetime" />
+ <result property="patname" column="patname" />
+ <result property="patno" column="patno" />
</resultMap>
<sql id="selectPatMedInhospVo">
@@ -54,8 +56,10 @@
<include refid="selectPatMedInhospVo"/>
<where>
<if test="hospitalname != null and hospitalname != ''"> and hospitalname like concat('%', #{hospitalname}, '%')</if>
+ <if test="patname != null and patname != ''"> and patname like concat('%', #{patname}, '%')</if>
<if test="hospitaldistrictname != null and hospitaldistrictname != ''"> and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%')</if>
<if test="endtime != null "> and endtime = #{endtime}</if>
+ <if test="patno != null "> and patno = #{patno}</if>
<if test="leavediagname != null and leavediagname != ''"> and leavediagname like concat('%', #{leavediagname}, '%')</if>
<if test="drname != null and drname != ''"> and drname like concat('%', #{drname}, '%')</if>
<if test="leaveldeptname != null and leaveldeptname != ''"> and leaveldeptname like concat('%', #{leaveldeptname}, '%')</if>
@@ -108,6 +112,8 @@
<if test="deptid != null">deptid,</if>
<if test="leaveldeptid != null">leaveldeptid,</if>
<if test="schemetime != null">schemetime,</if>
+ <if test="patname!= null">patname,</if>
+ <if test="patno != null">patno,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="serialnum != null">#{serialnum},</if>
@@ -147,6 +153,8 @@
<if test="deptid != null">#{deptid},</if>
<if test="leaveldeptid != null">#{leaveldeptid},</if>
<if test="schemetime != null">#{schemetime},</if>
+ <if test="patname!= null">#{patname},</if>
+ <if test="patno != null">#{patno},</if>
</trim>
</insert>
@@ -190,6 +198,8 @@
<if test="deptid != null">deptid = #{deptid},</if>
<if test="leaveldeptid != null">leaveldeptid = #{leaveldeptid},</if>
<if test="schemetime != null">schemetime = #{schemetime},</if>
+ <if test="patname!= null">patname = #{patname},</if>
+ <if test="patno != null">patno = #{patno},</if>
</trim>
where inhospid = #{inhospid}
</update>
--
Gitblit v1.9.3