From 8cb39738693cc2058d39f52c97fb41cf02221a33 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 21 十一月 2025 09:30:56 +0800
Subject: [PATCH] 报表相关班组名称带括号筛选

---
 north-glass-erp/src/main/resources/mapper/pp/Report.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/Report.xml b/north-glass-erp/src/main/resources/mapper/pp/Report.xml
index 21414da..c1f24ab 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/Report.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/Report.xml
@@ -1733,7 +1733,7 @@
             AND rw.this_process REGEXP #{teamOutputDTO.thisProcess}
         </if>
         <if test="teamOutputDTO.teamsGroupsName != null and teamOutputDTO.teamsGroupsName != ''">
-            AND rw.teams_groups_name REGEXP #{teamOutputDTO.teamsGroupsName}
+            and rw.teams_groups_name like concat('%', #{teamOutputDTO.teamsGroupsName}, '%')
         </if>
         <if test="teamOutputDTO.project != null and teamOutputDTO.project != ''">
             AND o.project REGEXP #{teamOutputDTO.project}
@@ -1886,7 +1886,7 @@
             and rw.this_process regexp #{teamOutputDTO.thisProcess}
         </if>
         <if test="teamOutputDTO.teamsGroupsName != null and teamOutputDTO.teamsGroupsName != ''">
-            and rw.teams_groups_name regexp #{teamOutputDTO.teamsGroupsName}
+            and rw.teams_groups_name like concat('%', #{teamOutputDTO.teamsGroupsName}, '%')
         </if>
         <if test="teamOutputDTO.project != null and teamOutputDTO.project != ''">
             and o.project regexp #{teamOutputDTO.project}
@@ -2570,7 +2570,7 @@
             AND rw.this_process REGEXP #{teamOutputDTO.thisProcess}
         </if>
         <if test="teamOutputDTO.teamsGroupsName != null and teamOutputDTO.teamsGroupsName != ''">
-            AND rw.teams_groups_name REGEXP #{teamOutputDTO.teamsGroupsName}
+            and rw.teams_groups_name like concat('%', #{teamOutputDTO.teamsGroupsName}, '%')
         </if>
         <if test="teamOutputDTO.project != null and teamOutputDTO.project != ''">
             AND o.project REGEXP #{teamOutputDTO.project}

--
Gitblit v1.8.0