From 27cf04fbbc844b3c0fb758d165d030c4929e466d Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 06 九月 2023 10:35:03 +0800
Subject: [PATCH] 主数据固定码段 默认值

---
 Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/StrategyMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/StrategyMapper.xml b/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/StrategyMapper.xml
index 29894ee..50d4a67 100644
--- a/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/StrategyMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/StrategyMapper.xml
@@ -25,10 +25,15 @@
     <!--鏌ヨ鎸囧畾琛屾暟鎹�-->
     <select id="queryAllByPage" resultMap="StrategyMap">
         select pss.*,
-               (SELECT listagg(psc.NAME,',') within GROUP BY(ORDER BY psc.NAME asc)
+               (SELECT listagg(psc.NAME,',') within GROUP(ORDER BY psc.NAME asc)
                 from PL_SYS_COMBINATION psc
                 where instr(pss.COMBINATION_IDS,psc.ID) > 0) COMBINATIONNAMES
         from PL_SYS_PWDSTRATEGY pss
+        <where>
+        <if test="tenantId != null and tenantId != ''">
+            and TENANT_ID = #{tenantId}
+        </if>
+        </where>
     </select>
 
     <!--缁熻鎬昏鏁�-->

--
Gitblit v1.9.3