From b79d14af673a7adc8614b5cb1e49773b5a992f83 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 08 四月 2026 17:49:56 +0800
Subject: [PATCH] 【丽水】手术随访
---
smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml | 32 +++++++++++++++++++++++++++++---
1 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
index aea8479..25ba255 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
@@ -6,6 +6,7 @@
<resultMap type="com.smartor.domain.PatMedOperationItem" id="PatMedOperationItemResult">
<result property="id" column="id"/>
+ <result property="operationid" column="operationid"/>
<result property="opid" column="opid"/>
<result property="opcode" column="opcode"/>
<result property="opdesc" column="opdesc"/>
@@ -26,17 +27,22 @@
<result property="pguid" column="pguid"/>
<result property="guid" column="guid"/>
<result property="pid" column="pid"/>
+ <result property="opercheckFlag" column="opercheck_flag"/>
+ <result property="longTaskReason" column="long_task_reason"/>
</resultMap>
<sql id="selectPatMedOperationItemVo">
- select id, opid, opcode, opdesc, main_flag, incitypecode, incitypedesc, oplevelcode, opleveldesc, opposition, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pguid, guid, pid
+ select id, operationid, opid, opcode, opdesc, main_flag, incitypecode, incitypedesc, oplevelcode, opleveldesc, opposition, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pguid, guid, pid, opercheck_flag, long_task_reason
from pat_med_operation_item
</sql>
<select id="selectPatMedOperationItemList" parameterType="com.smartor.domain.PatMedOperationItem"
resultMap="PatMedOperationItemResult">
<include refid="selectPatMedOperationItemVo"/>
- <where>
+ where 1=1
+ <if test="operationid != null ">
+ and operationid = #{operationid}
+ </if>
<if test="opid != null ">
and opid = #{opid}
</if>
@@ -82,7 +88,6 @@
<if test="pid != null ">
and pid = #{pid}
</if>
- </where>
</select>
<select id="selectPatMedOperationItemById" parameterType="Long"
@@ -95,6 +100,8 @@
insert into pat_med_operation_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,
+ </if>
+ <if test="operationid != null">operationid,
</if>
<if test="opid != null">opid,
</if>
@@ -136,9 +143,15 @@
</if>
<if test="pid != null">pid,
</if>
+ <if test="opercheckFlag != null">opercheck_flag,
+ </if>
+ <if test="longTaskReason != null">long_task_reason,
+ </if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},
+ </if>
+ <if test="operationid != null">#{operationid},
</if>
<if test="opid != null">#{opid},
</if>
@@ -180,12 +193,19 @@
</if>
<if test="pid != null">#{pid},
</if>
+ <if test="opercheckFlag != null">#{opercheckFlag},
+ </if>
+ <if test="longTaskReason != null">#{longTaskReason},
+ </if>
</trim>
</insert>
<update id="updatePatMedOperationItem" parameterType="com.smartor.domain.PatMedOperationItem">
update pat_med_operation_item
<trim prefix="SET" suffixOverrides=",">
+ <if test="operationid != null">operationid =
+ #{operationid},
+ </if>
<if test="opid != null">opid =
#{opid},
</if>
@@ -246,6 +266,12 @@
<if test="pid != null">pid =
#{pid},
</if>
+ <if test="opercheckFlag != null">opercheck_flag =
+ #{opercheckFlag},
+ </if>
+ <if test="longTaskReason != null">long_task_reason =
+ #{longTaskReason},
+ </if>
</trim>
where id = #{id}
</update>
--
Gitblit v1.9.3