From de65fe400a36b9f8adb32be2c53323799677b5ae Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期五, 14 二月 2025 11:58:28 +0800
Subject: [PATCH] 操作记录修改

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/interceptor/MybatisInterceptor.java |    4 ++--
 ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml                     |   15 ---------------
 2 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/interceptor/MybatisInterceptor.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/interceptor/MybatisInterceptor.java
index 40f0228..8c232f4 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/interceptor/MybatisInterceptor.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/interceptor/MybatisInterceptor.java
@@ -54,7 +54,7 @@
                     //注入创建时间
                     if ("createTime".equals(field.getName())) {
                         field.setAccessible(true);
-                        field.set(parameter, LocalDateTime.now());
+//                        field.set(parameter, LocalDateTime.now());
                         field.setAccessible(false);
                     } 
                 } catch (Exception e) {
@@ -77,7 +77,7 @@
                     }
                     if ("updateTime".equals(field.getName())) {
                         field.setAccessible(true);
-                        field.set(parameter, new Date());
+//                        field.set(parameter, new Date());
                         field.setAccessible(false);
                     }
                 } catch (Exception e) {
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
index faaee57..cc568e7 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -92,21 +92,6 @@
 			   sol.oper_time AS operTime, sol.cost_time AS costTime,sol.companyName AS companyName,sol.roleName AS roleName,sol.phonenumber AS phonenumber,
 			   sol.userId AS userId,sol.nickName AS nickName
 		from sys_oper_log sol
-		<where>
-			<if test="query.companyName != null and query.companyName != ''">
-				AND sol.companyName LIKE concat('%',#{query.companyName},'%')
-			</if>
-			<if test="query.roleName != null and query.roleName != ''">
-				AND sol.roleName LIKE concat('%',#{query.roleName},'%')
-			</if>
-			<if test="query.nickName != null and query.nickName != ''">
-				AND sol.nickName LIKE concat('%',#{query.nickName},'%')
-			</if>
-			<if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
-				AND DATE_FORMAT(sol.oper_time, '%Y-%m-%d %H:%i:%s') &gt;= #{query.startTime}
-				AND DATE_FORMAT(sol.oper_time, '%Y-%m-%d %H:%i:%s') &lt;= #{query.endTime}
-			</if>
-		</where>
 		ORDER BY sol.oper_time DESC
 	</select>
 

--
Gitblit v1.7.1