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/SysLogininforMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml index 8c3f3ff..150db83 100644 --- a/aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml +++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysLogininforMapper.xml @@ -22,13 +22,13 @@ select info_id, user_name, ipaddr, status, msg, access_time from sys_logininfor <where> <if test="ipaddr != null and ipaddr != ''"> - AND ipaddr like concat('%', #{ipaddr}, '%') + AND ipaddr like '%' || #{ipaddr} || '%' </if> <if test="status != null and status != ''"> AND status = #{status} </if> <if test="userName != null and userName != ''"> - AND user_name like concat('%', #{userName}, '%') + AND user_name like '%' || #{userName} || '%' </if> <if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� --> AND access_time >= #{params.beginTime} -- Gitblit v1.9.3