From 356088d23c5f1a796685871f99e80a3b6a7de564 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 23 六月 2026 17:32:10 +0800
Subject: [PATCH] 【市一】外链开放机构号生成

---
 smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml |   88 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 88 insertions(+), 0 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
index 080bf13..329984e 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
@@ -29,6 +29,16 @@
             <result property="pid" column="pid"/>
             <result property="opercheckFlag" column="opercheck_flag"/>
             <result property="longTaskReason" column="long_task_reason"/>
+
+            <result property="deptcode" column="deptcode"/>
+            <result property="deptname" column="deptname"/>
+            <result property="hospitaldistrictcode" column="hospitaldistrictcode"/>
+            <result property="hospitaldistrictname" column="hospitaldistrictname"/>
+            <result property="patid" column="patid"/>
+            <result property="drcode" column="drcode"/>
+            <result property="drname" column="drname"/>
+            <result property="nurseId" column="nurse_id"/>
+            <result property="nurseName" column="nurse_name"/>
     </resultMap>
 
     <sql id="selectPatMedOperationItemVo">
@@ -399,5 +409,83 @@
                where opid = #{opid}
     </delete>
 
+    <select id="selectOperationItemList" parameterType="com.smartor.domain.PatMedOperationItem"
+            resultMap="PatMedOperationItemResult">
+        select pmoi.id, pmoi.operationid, pmoi.opid, pmoi.opcode, pmoi.opdesc, pmoi.main_flag, pmoi.incitypecode,
+        pmoi.incitypedesc, pmoi.oplevelcode, pmoi.opleveldesc, pmoi.opposition, pmoi.del_flag, pmoi.update_by,
+        pmoi.update_time, pmoi.create_by, pmoi.create_time, pmoi.isupload, pmoi.upload_time, pmoi.orgid,
+        pmoi.pguid, pmoi.guid, pmoi.pid, pmoi.opercheck_flag, pmoi.long_task_reason,
+        pmo.deptcode, pmo.deptname, pmo.hospitaldistrictcode, pmo.hospitaldistrictname, pmo.patid,
+        pmo.drcode, pmo.drname, pmo.nurse_id, pmo.nurse_name
+        from pat_med_operation pmo
+        join pat_med_operation_item pmoi
+        on pmoi.opcode = pmo.opcode
+        where
+        pmo.del_flag = '0'
+        and pmoi.del_flag = '0'
+        <if test="operationid != null ">
+            and pmoi.operationid = #{operationid}
+        </if>
+        <if test="opid != null ">
+            and pmoi.opid = #{opid}
+        </if>
+        <if test="opcode != null  and opcode != ''">
+            and pmoi.opcode = #{opcode}
+        </if>
+        <if test="opdesc != null  and opdesc != ''">
+            and pmoi.opdesc = #{opdesc}
+        </if>
+        <if test="mainFlag != null  and mainFlag != ''">
+            and pmoi.main_flag = #{mainFlag}
+        </if>
+        <if test="incitypecode != null  and incitypecode != ''">
+            and pmoi.incitypecode = #{incitypecode}
+        </if>
+        <if test="incitypedesc != null  and incitypedesc != ''">
+            and pmoi.incitypedesc = #{incitypedesc}
+        </if>
+        <if test="oplevelcode != null  and oplevelcode != ''">
+            and pmoi.oplevelcode = #{oplevelcode}
+        </if>
+        <if test="opleveldesc != null  and opleveldesc != ''">
+            and pmoi.opleveldesc = #{opleveldesc}
+        </if>
+        <if test="opposition != null  and opposition != ''">
+            and pmoi.opposition = #{opposition}
+        </if>
+        <if test="isupload != null ">
+            and pmoi.isupload = #{isupload}
+        </if>
+        <if test="uploadTime != null ">
+            and pmoi.upload_time = #{uploadTime}
+        </if>
+        <if test="orgid != null  and orgid != ''">
+            and pmoi.orgid = #{orgid}
+        </if>
+        <if test="pguid != null  and pguid != ''">
+            and pmoi.pguid = #{pguid}
+        </if>
+        <if test="guid != null  and guid != ''">
+            and pmoi.guid = #{guid}
+        </if>
+        <if test="pid != null ">
+            and pmoi.pid = #{pid}
+        </if>
+        <if test="deptcode != null and deptcode != ''">
+            and pmo.deptcode = #{deptcode}
+        </if>
+        <if test="deptname != null and deptname != ''">
+            and pmo.deptname = #{deptname}
+        </if>
+        <if test="hospitaldistrictcode != null and hospitaldistrictcode != ''">
+            and pmo.hospitaldistrictcode = #{hospitaldistrictcode}
+        </if>
+        <if test="hospitaldistrictname != null and hospitaldistrictname != ''">
+            and pmo.hospitaldistrictname = #{hospitaldistrictname}
+        </if>
+        <if test="patid != null">
+            and pmo.patid = #{patid}
+        </if>
+    </select>
 
 </mapper>

--
Gitblit v1.9.3