From 910ae1423275d7039c21d31219e6fd59f2e59ecc Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Mon, 01 Apr 2024 08:49:10 +0800
Subject: [PATCH] 邮箱分页查询失败

---
 src/main/java/org/springblade/modules/email/mapper/EmailTemplateMapper.xml |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/springblade/modules/email/mapper/EmailTemplateMapper.xml b/src/main/java/org/springblade/modules/email/mapper/EmailTemplateMapper.xml
index 72b6cb5..29c4dcb 100644
--- a/src/main/java/org/springblade/modules/email/mapper/EmailTemplateMapper.xml
+++ b/src/main/java/org/springblade/modules/email/mapper/EmailTemplateMapper.xml
@@ -10,13 +10,13 @@
     <select id="selectEmailTemplatePage" resultMap="emailTemplateResultMap">
         select * from blade_email_template
         <where>
-            <if test="id != null ">and id = #{id}</if>
-            <if test="title != null  and title != ''">and title like CONCAT('%', #{title},'%')</if>
-            <if test="content != null  and content != ''">and content = #{content}</if>
-            <if test="createTime != null ">and create_time = #{createTime}</if>
-            <if test="updateTime != null ">and update_time = #{updateTime}</if>
-            <if test="isDeleted != null ">and is_deleted = #{isDeleted}</if>
-            <if test="createBy != null ">and create_by = #{createBy}</if>
+            <if test="emailTemplate.id != null ">and id = #{emailTemplate.id}</if>
+            <if test="emailTemplate.title != null  and emailTemplate.title != ''">and title like CONCAT('%', #{emailTemplate.title},'%')</if>
+            <if test="emailTemplate.content != null  and emailTemplate.content != ''">and content = #{emailTemplate.content}</if>
+            <if test="emailTemplate.createTime != null ">and create_time = #{emailTemplate.createTime}</if>
+            <if test="emailTemplate.updateTime != null ">and update_time = #{emailTemplate.updateTime}</if>
+            <if test="emailTemplate.isDeleted != null ">and is_deleted = #{emailTemplate.isDeleted}</if>
+            <if test="emailTemplate.createBy != null ">and create_by = #{emailTemplate.createBy}</if>
             and is_deleted = 0
         </where>
     </select>

--
Gitblit v1.9.3