From d047a35e640a59e02a422d9a9a62c752c88b69b5 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 28 十月 2026 15:51:52 +0800
Subject: [PATCH] 【丽水】 同一 inhospid + taskid 已存在未删除的首次随访(upid 为空)时,不再插入,避免出现两条首次随访

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

diff --git a/smartor/src/main/resources/mapper/smartor/SysUserImportMapper.xml b/smartor/src/main/resources/mapper/smartor/SysUserImportMapper.xml
index d0cd5b7..c248c2a 100644
--- a/smartor/src/main/resources/mapper/smartor/SysUserImportMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SysUserImportMapper.xml
@@ -116,7 +116,7 @@
     <select id="selectSysUserImportList" parameterType="com.smartor.domain.SysUserImport"
             resultMap="SysUserImportResult">
         <include refid="selectSysUserImportVo"/>
-        <where>
+        where 1=1
             <if test="subId != null ">
                 and sub_id = #{subId}
             </if>
@@ -249,7 +249,6 @@
             <if test="defaultWardName != null  and defaultWardName != ''">
                 and default_ward_name = #{defaultWardName}
             </if>
-        </where>
     </select>
 
     <select id="selectSysUserImportById" parameterType="Long"

--
Gitblit v1.9.3