From bedd0a1cef215538df64470df6b8d4a022189136 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 28 八月 2024 14:05:16 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml index 063d6c9..a9510ce 100644 --- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml @@ -44,23 +44,33 @@ <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" /> + <result property="inhospstate" column="inhospstate" /> + <result property="checkFlag" column="check_flag" /> </resultMap> <sql id="selectPatMedInhospVo"> - 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 + select inhospid,patname,check_flag,inhospstate,patno,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="checkFlag != null "> and check_flag = #{checkFlag}</if> + <if test="inhospstate != null "> and inhospstate = #{inhospstate}</if> + <if test="schemestatus != null "> and schemestatus = #{schemestatus}</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> + order by update_time desc </select> <select id="selectPatMedInhospByInhospid" parameterType="Long" resultMap="PatMedInhospResult"> @@ -108,6 +118,10 @@ <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> + <if test="inhospstate != null">inhospstate,</if> + <if test="checkFlag != null">check_flag,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="serialnum != null">#{serialnum},</if> @@ -147,6 +161,10 @@ <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> + <if test="inhospstate != null">#{inhospstate},</if> + <if test="checkFlag != null">#{checkFlag},</if> </trim> </insert> @@ -190,6 +208,10 @@ <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> + <if test="inhospstate != null">inhospstate = #{inhospstate},</if> + <if test="checkFlag != null">check_flag = #{checkFlag},</if> </trim> where inhospid = #{inhospid} </update> -- Gitblit v1.9.3