From 0bc3fc0304d163c9e54e4e36f45f72ce1b1d59fb Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 08 十月 2026 21:35:39 +0800
Subject: [PATCH] 提交

---
 smartor/src/main/resources/mapper/smartor/PatArchiveImportMapper.xml |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveImportMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveImportMapper.xml
index a6155e6..171c9f5 100644
--- a/smartor/src/main/resources/mapper/smartor/PatArchiveImportMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatArchiveImportMapper.xml
@@ -54,8 +54,8 @@
     <select id="selectPatArchiveImportList" parameterType="com.smartor.domain.PatArchiveImport"
             resultMap="PatArchiveImportResult">
         <include refid="selectPatArchiveImportVo"/>
-        <where>
-            del_flag=0
+        where 1=1
+            and del_flag = 0
             <if test="patientno != null  and patientno != ''">
                 and patientno = #{patientno}
             </if>
@@ -89,7 +89,6 @@
             <if test="batchNo != null  and batchNo != ''">
                 and batch_no = #{batchNo}
             </if>
-        </where>
         ORDER BY create_time desc
     </select>
 
@@ -282,8 +281,8 @@
         <if test="orgid != null and orgid != ''">orgid,</if>
         create_time
         )values(
-        <if test="userId != null and userId != ''">#{userId},</if>
-        <if test="deptId != null and deptId != ''">#{deptId},</if>
+        <if test="userId != null and userId != 0">#{userId},</if>
+        <if test="deptId != null and deptId != 0">#{deptId},</if>
         <if test="userName != null and userName != ''">#{userName},</if>
         <if test="nickName != null and nickName != ''">#{nickName},</if>
         <if test="email != null and email != ''">#{email},</if>

--
Gitblit v1.9.3