From 410e73ecfe28f4794dfd3e48a3372bff1ba33c70 Mon Sep 17 00:00:00 2001 From: huangjiayang <5265313@qq.com> Date: 星期三, 14 五月 2025 11:18:31 +0800 Subject: [PATCH] 【UPDATE】修改系统管理相关基础功能模糊检索报错问题 --- aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml index 3ff7826..72a9ded 100644 --- a/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml +++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysRoleMapper.xml @@ -37,13 +37,13 @@ AND r.role_id = #{roleId} </if> <if test="roleName != null and roleName != ''"> - AND r.role_name like concat('%', #{roleName}, '%') + AND r.role_name like '%' || #{roleName} || '%' </if> <if test="status != null and status != ''"> AND r.status = #{status} </if> <if test="roleKey != null and roleKey != ''"> - AND r.role_key like concat('%', #{roleKey}, '%') + AND r.role_key like '%' || #{roleKey} || '%' </if> <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� --> and date_format(r.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') -- Gitblit v1.9.3