From 571e18289eb1517f77d77f4bf5da65cb21ea0a49 Mon Sep 17 00:00:00 2001
From: wangxy <1481820854@qq.com>
Date: Tue, 19 Nov 2024 09:45:54 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2?=
=?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/system/SysConfigMapper.xml | 4 +--
.../mapper/system/SysDictTypeMapper.xml | 5 ++--
.../mapper/system/SysLogininforMapper.xml | 4 +--
.../mapper/system/SysOperLogMapper.xml | 4 +--
.../resources/mapper/system/SysRoleMapper.xml | 4 +--
.../resources/mapper/system/SysUserMapper.xml | 4 +--
.../resources/mapper/system/TdLeaveMapper.xml | 26 +++++++++----------
7 files changed, 25 insertions(+), 26 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
index f33ad42..0f84e94 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
@@ -51,10 +51,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND config_key like concat('%', #{configKey}, '%')
- AND create_time >= #{params.beginTime}
+ AND create_time >= CAST(#{params.beginTime} AS TIMESTAMP)
- AND create_time <= #{params.endTime}
+ AND create_time <= CAST(#{params.endTime} AS TIMESTAMP)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
index 368f541..3b6fe9f 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
@@ -33,12 +33,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND dict_type like concat('%', #{dictType}, '%')
- AND create_time >= #{params.beginTime}
+ and create_time >= CAST(#{params.beginTime} AS TIMESTAMP)
- AND create_time <= #{params.endTime}
+ and create_time <= CAST(#{params.endTime} AS TIMESTAMP)
-
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
index 32bb4f3..9943c55 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
@@ -34,10 +34,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND login_name like concat('%', #{loginName}, '%')
- AND login_time >= #{params.beginTime}
+ AND login_time >= CAST(#{params.beginTime} AS TIMESTAMP)
- AND login_time <= #{params.endTime}
+ AND login_time <= CAST(#{params.endTime} AS TIMESTAMP)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
index 05bb57a..68c16f9 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -56,10 +56,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND oper_name like concat('%', #{operName}, '%')
- AND oper_time >= #{params.beginTime}
+ AND oper_time >= CAST(#{params.beginTime} AS TIMESTAMP)
- AND oper_time <= #{params.endTime}
+ AND oper_time <= CAST(#{params.endTime} AS TIMESTAMP)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
index 353bb86..bcfcf72 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -52,10 +52,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND r.data_scope = #{dataScope}
- AND r.create_time >= #{params.beginTime}
+ and r.create_time >= CAST(#{params.beginTime} AS TIMESTAMP)
- AND r.create_time <= #{params.endTime}
+ and r.create_time <= CAST(#{params.endTime} AS TIMESTAMP)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index 0f56dab..762a219 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -102,10 +102,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND u.phonenumber like concat('%', #{phonenumber}, '%')
- AND u.create_time >= #{params.beginTime}
+ AND u.create_time >= CAST(#{params.beginTime} AS TIMESTAMP)
- AND u.create_time <= #{params.endTime}
+ AND u.create_time <= CAST(#{params.endTime} AS TIMESTAMP)
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE CAST(#{deptId} AS text) = ANY(string_to_array(ancestors, ','))))
diff --git a/ruoyi-system/src/main/resources/mapper/system/TdLeaveMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdLeaveMapper.xml
index d7d7666..4b760b0 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TdLeaveMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TdLeaveMapper.xml
@@ -27,19 +27,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"