From 987e38327f849e1b13d8541246dde08d877db0e8 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 14:10:43 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid
---
smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml | 19 ++++++++++++++++---
1 files changed, 16 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..ffa2589 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"/>
@@ -29,14 +30,19 @@
</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
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="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
+
+ <if test="operationid != null ">
+ and operationid = #{operationid}
+ </if>
<if test="opid != null ">
and opid = #{opid}
</if>
@@ -82,7 +88,7 @@
<if test="pid != null ">
and pid = #{pid}
</if>
- </where>
+
</select>
<select id="selectPatMedOperationItemById" parameterType="Long"
@@ -95,6 +101,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>
@@ -139,6 +147,8 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},
+ </if>
+ <if test="operationid != null">#{operationid},
</if>
<if test="opid != null">#{opid},
</if>
@@ -186,6 +196,9 @@
<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>
--
Gitblit v1.9.3