From 207a9ce855452d23e81e9ca8bf253521e0e0d3f9 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 27 九月 2023 15:21:59 +0800 Subject: [PATCH] 操作日志列表新增IP地址查询 --- ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml index 75593c2..0c3fb69 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml @@ -37,6 +37,9 @@ <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> <include refid="selectOperLogVo"/> <where> + <if test="operIp != null and operIp != ''"> + AND oper_ip like concat('%', #{operIp}, '%') + </if> <if test="title != null and title != ''"> AND title like concat('%', #{title}, '%') </if> -- Gitblit v1.9.2