From 442600e2cb63f711418b8eb0f4ab8e2b97eb19c9 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 24 Aug 2022 18:38:19 +0800
Subject: [PATCH] fix

---
 src/main/resources/mapper/CmsFriendlyLinkMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/CmsFriendlyLinkMapper.xml b/src/main/resources/mapper/CmsFriendlyLinkMapper.xml
index 42a1ce9..e129cca 100644
--- a/src/main/resources/mapper/CmsFriendlyLinkMapper.xml
+++ b/src/main/resources/mapper/CmsFriendlyLinkMapper.xml
@@ -8,7 +8,12 @@
          b.name groupName
         from cms_friendly_link a
             left join cms_group_info b on a.group_id=b.id
-        where a.company_id=#{record.companyId}
+        <where>
+            a.company_id=#{record.companyId}
+            <if test="record.name != null and record.name != ''">
+                and a.name like concat(concat('%', #{record.name}), '%')
+            </if>
+        </where>
     </select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1