From 05591c1ff9566cff6567d7722cd50dc07499c4a8 Mon Sep 17 00:00:00 2001
From: anthonyywj2 <353682448@qq.com>
Date: Thu, 28 Jul 2022 18:24:32 +0800
Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/resources/mybatis/mapper/info/SystemPDFModuleDao.xml | 2 +-
.../main/resources/mybatis/mapper/info/SystemPDFTemplateDao.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFModuleDao.xml b/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFModuleDao.xml
index fe2925a4..91a23077 100644
--- a/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFModuleDao.xml
+++ b/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFModuleDao.xml
@@ -13,7 +13,7 @@
AND `templateId` LIKE CONCAT(#{templateId},'%')
- AND `name` LIKE CONCAT(#{name},'%')
+ AND `name` LIKE CONCAT('%',#{name},'%')
diff --git a/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFTemplateDao.xml b/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFTemplateDao.xml
index 2e655a19..5973d371 100644
--- a/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFTemplateDao.xml
+++ b/api-admin/src/main/resources/mybatis/mapper/info/SystemPDFTemplateDao.xml
@@ -9,7 +9,7 @@
FROM system_pdf_template
- AND `name` LIKE CONCAT(#{name},'%')
+ AND `name` LIKE CONCAT('%',#{name},'%')
AND `module` = #{module}