From 1dc040a15692730e3e2a32992e48d3950fb61444 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 05 十一月 2025 18:03:38 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/PatMedOuthospProvisionalMapper.xml | 456 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 456 insertions(+), 0 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOuthospProvisionalMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOuthospProvisionalMapper.xml
new file mode 100644
index 0000000..c2d0e9c
--- /dev/null
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOuthospProvisionalMapper.xml
@@ -0,0 +1,456 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.smartor.mapper.PatMedOuthospProvisionalMapper">
+
+ <resultMap type="com.smartor.domain.PatMedOuthospProvisional" id="PatMedOuthospProvisionalResult">
+ <result property="id" column="id"/>
+ <result property="outhospno" column="outhospno"/>
+ <result property="serialnum" column="serialnum"/>
+ <result property="patid" column="patid"/>
+ <result property="patname" column="patname"/>
+ <result property="patno" column="patno"/>
+ <result property="hospitalname" column="hospitalname"/>
+ <result property="hospitalcode" column="hospitalcode"/>
+ <result property="icd10code" column="icd10code"/>
+ <result property="diagname" column="diagname"/>
+ <result property="deptid" column="deptid"/>
+ <result property="deptcode" column="deptcode"/>
+ <result property="deptname" column="deptname"/>
+ <result property="drcode" column="drcode"/>
+ <result property="drname" column="drname"/>
+ <result property="admitdate" column="admitdate"/>
+ <result property="orgid" column="orgid"/>
+ <result property="delFlag" column="del_flag"/>
+ <result property="updateBy" column="update_by"/>
+ <result property="updateTime" column="update_time"/>
+ <result property="createBy" column="create_by"/>
+ <result property="createTime" column="create_time"/>
+ <result property="isupload" column="isupload"/>
+ <result property="uploadTime" column="upload_time"/>
+ <result property="schemestatus" column="schemestatus"/>
+ <result property="schemetime" column="schemetime"/>
+ <result property="hpi" column="hpi"/>
+ <result property="mainsuit" column="mainsuit"/>
+ <result property="pid" column="pid"/>
+ <result property="guid" column="guid"/>
+ <result property="pguid" column="pguid"/>
+ <result property="hospitaldistrictcode" column="hospitaldistrictcode"/>
+ <result property="hospitaldistrictname" column="hospitaldistrictname"/>
+ <result property="diagcheckFlag" column="diagcheck_flag"/>
+ <result property="remark" column="remark"/>
+ <result property="fudate" column="fudate"/>
+ <result property="fuflag" column="fuflag"/>
+ <result property="campusid" column="campusid"/>
+ </resultMap>
+
+ <sql id="selectPatMedOuthospProvisionalVo">
+ select id, outhospno, serialnum, patid, patname, patno, hospitalname, hospitalcode, icd10code, diagname, deptid, deptcode, deptname, drcode, drname, admitdate, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, schemestatus, schemetime, hpi, mainsuit, pid, guid, pguid, hospitaldistrictcode, hospitaldistrictname, diagcheck_flag, remark, fudate, fuflag, campusid
+ from pat_med_outhosp_provisional
+ </sql>
+
+ <select id="selectPatMedOuthospProvisionalList" parameterType="com.smartor.domain.PatMedOuthospProvisional"
+ resultMap="PatMedOuthospProvisionalResult">
+ <include refid="selectPatMedOuthospProvisionalVo"/>
+ <where>
+ del_flag=0
+ <if test="outhospno != null and outhospno != ''">
+ and outhospno = #{outhospno}
+ </if>
+ <if test="serialnum != null and serialnum != ''">
+ and serialnum = #{serialnum}
+ </if>
+ <if test="patid != null ">
+ and patid = #{patid}
+ </if>
+ <if test="patname != null and patname != ''">
+ and patname like concat('%', #{patname}, '%')
+ </if>
+ <if test="patno != null and patno != ''">
+ and patno = #{patno}
+ </if>
+ <if test="hospitalname != null and hospitalname != ''">
+ and hospitalname like concat('%', #{hospitalname}, '%')
+ </if>
+ <if test="hospitalcode != null and hospitalcode != ''">
+ and hospitalcode = #{hospitalcode}
+ </if>
+ <if test="icd10code != null and icd10code != ''">
+ and icd10code = #{icd10code}
+ </if>
+ <if test="diagname != null and diagname != ''">
+ and diagname like concat('%', #{diagname}, '%')
+ </if>
+ <if test="deptid != null ">
+ and deptid = #{deptid}
+ </if>
+ <if test="deptcode != null and deptcode != ''">
+ and deptcode = #{deptcode}
+ </if>
+ <if test="deptname != null and deptname != ''">
+ and deptname like concat('%', #{deptname}, '%')
+ </if>
+ <if test="drcode != null and drcode != ''">
+ and drcode = #{drcode}
+ </if>
+ <if test="drname != null and drname != ''">
+ and drname like concat('%', #{drname}, '%')
+ </if>
+ <if test="admitdate != null ">
+ and admitdate = #{admitdate}
+ </if>
+ <if test="orgid != null and orgid != ''">
+ and orgid = #{orgid}
+ </if>
+ <if test="isupload != null ">
+ and isupload = #{isupload}
+ </if>
+ <if test="uploadTime != null ">
+ and upload_time = #{uploadTime}
+ </if>
+ <if test="schemestatus != null ">
+ and schemestatus = #{schemestatus}
+ </if>
+ <if test="schemetime != null ">
+ and schemetime = #{schemetime}
+ </if>
+ <if test="hpi != null and hpi != ''">
+ and hpi = #{hpi}
+ </if>
+ <if test="mainsuit != null and mainsuit != ''">
+ and mainsuit = #{mainsuit}
+ </if>
+ <if test="pid != null ">
+ and pid = #{pid}
+ </if>
+ <if test="guid != null and guid != ''">
+ and guid = #{guid}
+ </if>
+ <if test="pguid != null and pguid != ''">
+ and pguid = #{pguid}
+ </if>
+ <if test="hospitaldistrictcode != null and hospitaldistrictcode != ''">
+ and hospitaldistrictcode = #{hospitaldistrictcode}
+ </if>
+ <if test="hospitaldistrictname != null and hospitaldistrictname != ''">
+ and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%')
+ </if>
+ <if test="diagcheckFlag != null and diagcheckFlag != ''">
+ and diagcheck_flag = #{diagcheckFlag}
+ </if>
+ <if test="fudate != null ">
+ and fudate = #{fudate}
+ </if>
+ <if test="fuflag != null and fuflag != ''">
+ and fuflag = #{fuflag}
+ </if>
+ <if test="campusid != null and campusid != ''">
+ and campusid = #{campusid}
+ </if>
+ </where>
+ </select>
+
+ <select id="selectPatMedOuthospProvisionalById" parameterType="Long"
+ resultMap="PatMedOuthospProvisionalResult">
+ <include refid="selectPatMedOuthospProvisionalVo"/>
+ where id = #{id}
+ </select>
+
+ <insert id="insertPatMedOuthospProvisional" parameterType="com.smartor.domain.PatMedOuthospProvisional" useGeneratedKeys="true" keyProperty="id">
+ insert into pat_med_outhosp_provisional
+ <trim prefix="(" suffix=")" suffixOverrides=",">
+ <if test="outhospno != null">outhospno,
+ </if>
+ <if test="serialnum != null">serialnum,
+ </if>
+ <if test="patid != null">patid,
+ </if>
+ <if test="patname != null">patname,
+ </if>
+ <if test="patno != null">patno,
+ </if>
+ <if test="hospitalname != null">hospitalname,
+ </if>
+ <if test="hospitalcode != null">hospitalcode,
+ </if>
+ <if test="icd10code != null">icd10code,
+ </if>
+ <if test="diagname != null">diagname,
+ </if>
+ <if test="deptid != null">deptid,
+ </if>
+ <if test="deptcode != null">deptcode,
+ </if>
+ <if test="deptname != null">deptname,
+ </if>
+ <if test="drcode != null">drcode,
+ </if>
+ <if test="drname != null">drname,
+ </if>
+ <if test="admitdate != null">admitdate,
+ </if>
+ <if test="orgid != null">orgid,
+ </if>
+ <if test="delFlag != null">del_flag,
+ </if>
+ <if test="updateBy != null">update_by,
+ </if>
+ <if test="updateTime != null">update_time,
+ </if>
+ <if test="createBy != null">create_by,
+ </if>
+ <if test="createTime != null">create_time,
+ </if>
+ <if test="isupload != null">isupload,
+ </if>
+ <if test="uploadTime != null">upload_time,
+ </if>
+ <if test="schemestatus != null">schemestatus,
+ </if>
+ <if test="schemetime != null">schemetime,
+ </if>
+ <if test="hpi != null">hpi,
+ </if>
+ <if test="mainsuit != null">mainsuit,
+ </if>
+ <if test="pid != null">pid,
+ </if>
+ <if test="guid != null">guid,
+ </if>
+ <if test="pguid != null">pguid,
+ </if>
+ <if test="hospitaldistrictcode != null">hospitaldistrictcode,
+ </if>
+ <if test="hospitaldistrictname != null">hospitaldistrictname,
+ </if>
+ <if test="diagcheckFlag != null">diagcheck_flag,
+ </if>
+ <if test="remark != null">remark,
+ </if>
+ <if test="fudate != null">fudate,
+ </if>
+ <if test="fuflag != null">fuflag,
+ </if>
+ <if test="campusid != null">campusid,
+ </if>
+ </trim>
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
+ <if test="outhospno != null">#{outhospno},
+ </if>
+ <if test="serialnum != null">#{serialnum},
+ </if>
+ <if test="patid != null">#{patid},
+ </if>
+ <if test="patname != null">#{patname},
+ </if>
+ <if test="patno != null">#{patno},
+ </if>
+ <if test="hospitalname != null">#{hospitalname},
+ </if>
+ <if test="hospitalcode != null">#{hospitalcode},
+ </if>
+ <if test="icd10code != null">#{icd10code},
+ </if>
+ <if test="diagname != null">#{diagname},
+ </if>
+ <if test="deptid != null">#{deptid},
+ </if>
+ <if test="deptcode != null">#{deptcode},
+ </if>
+ <if test="deptname != null">#{deptname},
+ </if>
+ <if test="drcode != null">#{drcode},
+ </if>
+ <if test="drname != null">#{drname},
+ </if>
+ <if test="admitdate != null">#{admitdate},
+ </if>
+ <if test="orgid != null">#{orgid},
+ </if>
+ <if test="delFlag != null">#{delFlag},
+ </if>
+ <if test="updateBy != null">#{updateBy},
+ </if>
+ <if test="updateTime != null">#{updateTime},
+ </if>
+ <if test="createBy != null">#{createBy},
+ </if>
+ <if test="createTime != null">#{createTime},
+ </if>
+ <if test="isupload != null">#{isupload},
+ </if>
+ <if test="uploadTime != null">#{uploadTime},
+ </if>
+ <if test="schemestatus != null">#{schemestatus},
+ </if>
+ <if test="schemetime != null">#{schemetime},
+ </if>
+ <if test="hpi != null">#{hpi},
+ </if>
+ <if test="mainsuit != null">#{mainsuit},
+ </if>
+ <if test="pid != null">#{pid},
+ </if>
+ <if test="guid != null">#{guid},
+ </if>
+ <if test="pguid != null">#{pguid},
+ </if>
+ <if test="hospitaldistrictcode != null">#{hospitaldistrictcode},
+ </if>
+ <if test="hospitaldistrictname != null">#{hospitaldistrictname},
+ </if>
+ <if test="diagcheckFlag != null">#{diagcheckFlag},
+ </if>
+ <if test="remark != null">#{remark},
+ </if>
+ <if test="fudate != null">#{fudate},
+ </if>
+ <if test="fuflag != null">#{fuflag},
+ </if>
+ <if test="campusid != null">#{campusid},
+ </if>
+ </trim>
+ </insert>
+
+ <update id="updatePatMedOuthospProvisional" parameterType="com.smartor.domain.PatMedOuthospProvisional">
+ update pat_med_outhosp_provisional
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="outhospno != null">outhospno =
+ #{outhospno},
+ </if>
+ <if test="serialnum != null">serialnum =
+ #{serialnum},
+ </if>
+ <if test="patid != null">patid =
+ #{patid},
+ </if>
+ <if test="patname != null">patname =
+ #{patname},
+ </if>
+ <if test="patno != null">patno =
+ #{patno},
+ </if>
+ <if test="hospitalname != null">hospitalname =
+ #{hospitalname},
+ </if>
+ <if test="hospitalcode != null">hospitalcode =
+ #{hospitalcode},
+ </if>
+ <if test="icd10code != null">icd10code =
+ #{icd10code},
+ </if>
+ <if test="diagname != null">diagname =
+ #{diagname},
+ </if>
+ <if test="deptid != null">deptid =
+ #{deptid},
+ </if>
+ <if test="deptcode != null">deptcode =
+ #{deptcode},
+ </if>
+ <if test="deptname != null">deptname =
+ #{deptname},
+ </if>
+ <if test="drcode != null">drcode =
+ #{drcode},
+ </if>
+ <if test="drname != null">drname =
+ #{drname},
+ </if>
+ <if test="admitdate != null">admitdate =
+ #{admitdate},
+ </if>
+ <if test="orgid != null">orgid =
+ #{orgid},
+ </if>
+ <if test="delFlag != null">del_flag =
+ #{delFlag},
+ </if>
+ <if test="updateBy != null">update_by =
+ #{updateBy},
+ </if>
+ <if test="updateTime != null">update_time =
+ #{updateTime},
+ </if>
+ <if test="createBy != null">create_by =
+ #{createBy},
+ </if>
+ <if test="createTime != null">create_time =
+ #{createTime},
+ </if>
+ <if test="isupload != null">isupload =
+ #{isupload},
+ </if>
+ <if test="uploadTime != null">upload_time =
+ #{uploadTime},
+ </if>
+ <if test="schemestatus != null">schemestatus =
+ #{schemestatus},
+ </if>
+ <if test="schemetime != null">schemetime =
+ #{schemetime},
+ </if>
+ <if test="hpi != null">hpi =
+ #{hpi},
+ </if>
+ <if test="mainsuit != null">mainsuit =
+ #{mainsuit},
+ </if>
+ <if test="pid != null">pid =
+ #{pid},
+ </if>
+ <if test="guid != null">guid =
+ #{guid},
+ </if>
+ <if test="pguid != null">pguid =
+ #{pguid},
+ </if>
+ <if test="hospitaldistrictcode != null">hospitaldistrictcode =
+ #{hospitaldistrictcode},
+ </if>
+ <if test="hospitaldistrictname != null">hospitaldistrictname =
+ #{hospitaldistrictname},
+ </if>
+ <if test="diagcheckFlag != null">diagcheck_flag =
+ #{diagcheckFlag},
+ </if>
+ <if test="remark != null">remark =
+ #{remark},
+ </if>
+ <if test="fudate != null">fudate =
+ #{fudate},
+ </if>
+ <if test="fuflag != null">fuflag =
+ #{fuflag},
+ </if>
+ <if test="campusid != null">campusid =
+ #{campusid},
+ </if>
+ </trim>
+ where id = #{id}
+ </update>
+
+ <update id="deletePatMedOuthospProvisionalById" parameterType="Long">
+ update pat_med_outhosp_provisional
+ <trim prefix="SET" suffixOverrides=",">
+ del_flag =1
+ </trim>
+ where id = #{id}
+ </update>
+
+ <update id="deletePatMedOuthospProvisionalByIds" parameterType="String">
+ update pat_med_outhosp_provisional
+ <trim prefix="SET" suffixOverrides=",">
+ del_flag =1
+ </trim>
+ where id in
+ <foreach item="id" collection="array" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </update>
+
+
+
+
+</mapper>
--
Gitblit v1.9.3