From e6456d2196b3e57bd06be0fbc74dd3e0fc28fdeb Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 22 七月 2025 19:17:55 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml index 0314b0c..28364e0 100644 --- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml @@ -425,6 +425,9 @@ where inhospid = #{inhospid} </select> + + + <insert id="insertPatMedInhosp" parameterType="com.smartor.domain.PatMedInhosp" useGeneratedKeys="true" keyProperty="inhospid"> insert into pat_med_inhosp @@ -554,6 +557,40 @@ </trim> </insert> + + <insert id="insertPatMedInhospBatch" parameterType="java.util.List"> + insert into pat_med_inhosp ( + 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, patname, patno, inhospstate, + deptcheck_flag, wardcheck_flag, diagcheck_flag, long_task_reason, + nurse_id, nurse_name, out_way_id, out_way_name, guid, + operator, operator_id, inhospno, remark, + fuflag, fudate, fuperiod, futypecode, futypedesc, fuadvice, fuspecialadvice + ) + values + <foreach collection="list" item="item" separator=","> + ( + #{item.serialnum}, #{item.hospitalname}, #{item.hospitalcode}, #{item.hospitaldistrictcode}, #{item.hospitaldistrictname}, + #{item.icd10code}, #{item.diagname}, #{item.starttime}, #{item.endtime}, #{item.deptcode}, #{item.deptname}, #{item.roomno}, #{item.bedNo}, + #{item.orgid}, #{item.delFlag}, #{item.updateBy}, #{item.updateTime}, #{item.createBy}, #{item.createTime}, #{item.isupload}, + #{item.uploadTime}, #{item.patid}, #{item.leavediagname}, #{item.leaveicd10code}, #{item.drcode}, #{item.drname}, + #{item.schemestatus}, #{item.generalschemestatus}, #{item.leaveldeptcode}, #{item.leaveldeptname}, #{item.hospitaldistrictid}, + #{item.leavehospitaldistrictcode}, #{item.leavehospitaldistrictname}, #{item.leavehospitaldistrictid}, + #{item.deptid}, #{item.leaveldeptid}, #{item.schemetime}, #{item.patname}, #{item.patno}, #{item.inhospstate}, + #{item.deptcheckFlag}, #{item.wardcheckFlag}, #{item.diagcheckFlag}, #{item.longTaskReason}, + #{item.nurseId}, #{item.nurseName}, #{item.outWayId}, #{item.outWayName}, #{item.guid}, + #{item.operator}, #{item.operatorId}, #{item.inhospno}, #{item.remark}, + #{item.fuflag}, #{item.fudate}, #{item.fuperiod}, #{item.futypecode}, #{item.futypedesc}, #{item.fuadvice}, #{item.fuspecialadvice} + ) + </foreach> + </insert> + + <update id="updatePatMedInhosp" parameterType="com.smartor.domain.PatMedInhosp"> update pat_med_inhosp <trim prefix="SET" suffixOverrides=","> -- Gitblit v1.9.3