From 94462d19bb33abe9654781d791ae0163a3e0e37e Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 27 一月 2026 16:29:07 +0800
Subject: [PATCH] 【丽水】微信已发送、已领取视为发送成功,不再进行补偿 改为 当前发送方式为微信的,且下一发送方式为短信的,微信发送状态为已发送、已领取的,跳过短信步骤

---
 ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
index 0c5b29a..fc59999 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
@@ -36,24 +36,27 @@
 
     <!-- 鏌ヨ鏉′欢 -->
     <sql id="sqlwhereSearch">
-        <where>
+        where 1=1
             <if test="configId !=null">
                 and config_id = #{configId}
             </if>
             <if test="configKey !=null and configKey != ''">
                 and config_key = #{configKey}
             </if>
-        </where>
+            <if test="orgid !=null and orgid != ''">
+                and orgid = #{orgid}
+            </if>
     </sql>
 
     <select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult">
         <include refid="selectConfigVo"/>
         <include refid="sqlwhereSearch"/>
+        limit 1
     </select>
 
     <select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult">
         <include refid="selectConfigVo"/>
-        <where>
+        where 1=1
             <if test="configName != null and configName != ''">
                 AND config_name like concat('%', #{configName}, '%')
             </if>
@@ -63,13 +66,15 @@
             <if test="configKey != null and configKey != ''">
                 AND config_key like concat('%', #{configKey}, '%')
             </if>
+            <if test="orgid != null and orgid != ''">
+                AND orgid = #{orgid}
+            </if>
             <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
                 and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
             </if>
             <if test="params.endTime != null and params.endTime != ''"><!-- 缁撴潫鏃堕棿妫�绱� -->
                 and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
             </if>
-        </where>
     </select>
 
     <select id="selectConfigById" parameterType="Long" resultMap="SysConfigResult">

--
Gitblit v1.9.3