From ec23ec3d3dc4ec1ba7d79ba4f46ae2c31d5a16a9 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 10:49:10 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid

---
 smartor/src/main/resources/mapper/smartor/PatMedPhysicalMapper.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedPhysicalMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedPhysicalMapper.xml
index 2969c66..9df3e5a 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedPhysicalMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedPhysicalMapper.xml
@@ -42,7 +42,8 @@
 
     <select id="selectPatMedPhysicalList" parameterType="com.smartor.domain.PatMedPhysical" resultMap="PatMedPhysicalResult">
         <include refid="selectPatMedPhysicalVo"/>
-        <where>
+        WHERE 1=1
+
             <if test="hospitalname != null  and hospitalname != ''"> and hospitalname like concat('%', #{hospitalname}, '%')</if>
             <if test="physicaldate != null "> and physicaldate = #{physicaldate}</if>
             <if test="orgid != null  and orgid != ''"> and orgid = #{orgid}</if>
@@ -50,7 +51,7 @@
             <if test="deptname != null  and deptname != ''"> and deptname like concat('%', #{deptname}, '%')</if>
             <if test="patname != null  and patname != ''"> and patname like concat('%', #{patname}, '%')</if>
             <if test="projectname != null  and projectname != ''"> and projectname like concat('%', #{projectname}, '%')</if>
-        </where>
+        
     </select>
 
     <select id="selectPatMedPhysicalById" parameterType="Long" resultMap="PatMedPhysicalResult">

--
Gitblit v1.9.3