From 37f2e4e68c0d55e094981fa478fc198b907f87dc Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期六, 20 七月 2024 16:30:13 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
index 9285192..cd627b7 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -19,7 +19,7 @@
<result property="deptcode" column="deptcode" />
<result property="deptname" column="deptname" />
<result property="roomno" column="roomno" />
- <result property="bedno" column="bedno" />
+ <result property="bedNo" column="bed_no" />
<result property="orgid" column="orgid" />
<result property="delFlag" column="del_flag" />
<result property="updateBy" column="update_by" />
@@ -44,18 +44,22 @@
<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">
- select inhospid,inhospno, serialnum, hospitalname, hospitalcode, hospitaldistrictcode, hospitaldistrictname, icd10code, diagname, starttime, endtime, deptcode, deptname, roomno, bedno, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, patid, leavediagname, leaveicd10code, drcode, drname, schemestatus, generalschemestatus, leaveldeptcode, leaveldeptname, hospitaldistrictid, leavehospitaldistrictcode, leavehospitaldistrictname, leavehospitaldistrictid, deptid, leaveldeptid, schemetime from pat_med_inhosp
+ select inhospid,inhospno, serialnum, hospitalname, hospitalcode, hospitaldistrictcode, hospitaldistrictname, icd10code, diagname, starttime, endtime, deptcode, deptname, roomno, bed_no, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, patid, leavediagname, leaveicd10code, drcode, drname, schemestatus, generalschemestatus, leaveldeptcode, leaveldeptname, hospitaldistrictid, leavehospitaldistrictcode, leavehospitaldistrictname, leavehospitaldistrictid, deptid, leaveldeptid, schemetime from pat_med_inhosp
</sql>
<select id="selectPatMedInhospList" parameterType="com.smartor.domain.PatMedInhosp" resultMap="PatMedInhospResult">
<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>
@@ -83,7 +87,7 @@
<if test="deptcode != null">deptcode,</if>
<if test="deptname != null">deptname,</if>
<if test="roomno != null">roomno,</if>
- <if test="bedno != null">bedno,</if>
+ <if test="bedNo != null">bed_no,</if>
<if test="orgid != null">orgid,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="updateBy != null">update_by,</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>
@@ -122,7 +128,7 @@
<if test="deptcode != null">#{deptcode},</if>
<if test="deptname != null">#{deptname},</if>
<if test="roomno != null">#{roomno},</if>
- <if test="bedno != null">#{bedno},</if>
+ <if test="bedNo != null">#{bedNo},</if>
<if test="orgid != null">#{orgid},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="updateBy != null">#{updateBy},</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>
@@ -165,7 +173,7 @@
<if test="deptcode != null">deptcode = #{deptcode},</if>
<if test="deptname != null">deptname = #{deptname},</if>
<if test="roomno != null">roomno = #{roomno},</if>
- <if test="bedno != null">bedno = #{bedno},</if>
+ <if test="bedNo != null">bed_no = #{bedNo},</if>
<if test="orgid != null">orgid = #{orgid},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
@@ -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>
@@ -204,4 +214,4 @@
#{inhospid}
</foreach>
</delete>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.9.3