From bc30484ac7a5feea3162d56b9ff76a9c976aba48 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 25 四月 2024 15:06:41 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 31 ++++++++++++++++---------------
1 files changed, 16 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..063d6c9 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" />
@@ -46,12 +47,12 @@
</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="hospitaldistrictname != null and hospitaldistrictname != ''"> and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%')</if>
<if test="endtime != null "> and endtime = #{endtime}</if>
@@ -61,13 +62,13 @@
<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 +83,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>
@@ -121,7 +122,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>
@@ -149,7 +150,7 @@
</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 +165,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>
@@ -198,9 +199,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