From 89e166f18d6e33efde0dda97f1fb27f29e675660 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期一, 05 八月 2024 17:57:45 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml index 77ff8a3..688dfaf 100644 --- a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml @@ -31,6 +31,7 @@ <result property="hpi" column="hpi"/> <result property="mainsuit" column="mainsuit"/> <result property="outhospno" column="outhospno"/> + <result property="patname" column="patname"/> </resultMap> <sql id="selectPatMedOuthospVo"> @@ -59,6 +60,7 @@ deptid, schemetime, hpi, + patname, mainsuit from pat_med_outhosp </sql> @@ -76,6 +78,7 @@ <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> <if test="outhospno != null and outhospno != ''">and outhospno = #{outhospno}</if> </where> + order by update_time desc </select> <select id="selectPatMedOuthospById" parameterType="Long" resultMap="PatMedOuthospResult"> @@ -112,6 +115,7 @@ <if test="hpi != null">hpi,</if> <if test="mainsuit != null">mainsuit,</if> <if test="outhospno != null">outhospno,</if> + <if test="patname != null">patname,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="serialnum != null">#{serialnum},</if> @@ -139,6 +143,7 @@ <if test="hpi != null">#{hpi},</if> <if test="mainsuit != null">#{mainsuit},</if> <if test="outhospno != null">#{outhospno},</if> + <if test="patname != null">#{patname},</if> </trim> </insert> @@ -170,6 +175,7 @@ <if test="hpi != null">hpi = #{hpi},</if> <if test="mainsuit != null">mainsuit = #{mainsuit},</if> <if test="outhospno != null">outhospno = #{outhospno},</if> + <if test="patname != null">patname = #{patname},</if> </trim> where id = #{id} </update> -- Gitblit v1.9.3