From bb60b5747d5f4b85655a541d4990ec7464497b1b Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 10 五月 2024 18:18:02 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml |   41 ++++++++++++++++++++++++++---------------
 1 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
index 811c5e4..cd627b7 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -3,9 +3,10 @@
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.smartor.mapper.PatMedInhospMapper">
-    
-    <resultMap type="PatMedInhosp" id="PatMedInhospResult">
+
+    <resultMap type="com.smartor.domain.PatMedInhosp" id="PatMedInhospResult">
         <result property="inhospid"    column="inhospid"    />
+        <result property="inhospno"    column="inhospno"    />
         <result property="serialnum"    column="serialnum"    />
         <result property="hospitalname"    column="hospitalname"    />
         <result property="hospitalcode"    column="hospitalcode"    />
@@ -18,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"    />
@@ -43,31 +44,35 @@
         <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, 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="PatMedInhosp" resultMap="PatMedInhospResult">
+    <select id="selectPatMedInhospList" parameterType="com.smartor.domain.PatMedInhosp" resultMap="PatMedInhospResult">
         <include refid="selectPatMedInhospVo"/>
-        <where>  
+        <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>
             <if test="leavehospitaldistrictname != null  and leavehospitaldistrictname != ''"> and leavehospitaldistrictname like concat('%', #{leavehospitaldistrictname}, '%')</if>
         </where>
     </select>
-    
+
     <select id="selectPatMedInhospByInhospid" parameterType="Long" resultMap="PatMedInhospResult">
         <include refid="selectPatMedInhospVo"/>
         where inhospid = #{inhospid}
     </select>
-        
-    <insert id="insertPatMedInhosp" parameterType="PatMedInhosp" useGeneratedKeys="true" keyProperty="inhospid">
+
+    <insert id="insertPatMedInhosp" parameterType="com.smartor.domain.PatMedInhosp" useGeneratedKeys="true" keyProperty="inhospid">
         insert into pat_med_inhosp
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="serialnum != null">serialnum,</if>
@@ -82,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>
@@ -107,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>
@@ -121,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>
@@ -146,10 +153,12 @@
             <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>
 
-    <update id="updatePatMedInhosp" parameterType="PatMedInhosp">
+    <update id="updatePatMedInhosp" parameterType="com.smartor.domain.PatMedInhosp">
         update pat_med_inhosp
         <trim prefix="SET" suffixOverrides=",">
             <if test="serialnum != null">serialnum = #{serialnum},</if>
@@ -164,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>
@@ -189,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>
@@ -198,9 +209,9 @@
     </delete>
 
     <delete id="deletePatMedInhospByInhospids" parameterType="String">
-        delete from pat_med_inhosp where inhospid in 
+        delete from pat_med_inhosp where inhospid in
         <foreach item="inhospid" collection="array" open="(" separator="," close=")">
             #{inhospid}
         </foreach>
     </delete>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3