From 349444c14ba15c560a3e370ff2912d368433345d Mon Sep 17 00:00:00 2001
From: "932319043@qq.com" <0556aqzh>
Date: Mon, 4 Mar 2019 17:50:29 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9params=E5=8F=82=E6=95=B0?=
=?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E6=8A=A5=E9=94=99BUG?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/system/SysConfigMapper.xml | 4 +-
.../resources/mapper/system/SysDeptMapper.xml | 6 +-
.../mapper/system/SysDictTypeMapper.xml | 176 +++++++++---------
.../mapper/system/SysLogininforMapper.xml | 4 +-
.../mapper/system/SysOperLogMapper.xml | 4 +-
.../resources/mapper/system/SysRoleMapper.xml | 4 +-
.../resources/mapper/system/SysUserMapper.xml | 8 +-
7 files changed, 105 insertions(+), 101 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
index 4756c1f18..5b73e5d33 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
@@ -50,10 +50,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND config_key like concat('%', #{configKey}, '%')
-
+
and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
-
+
and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index 175609226..eb442d2ff 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -47,8 +47,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND status = #{status}
-
- ${params.dataScope}
+
+
+ #{params.dataScope}
+
order by d.order_num
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
index e2f69f92a..41b5f4db3 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml
@@ -1,100 +1,100 @@
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
from sys_dict_type
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
delete from sys_dict_type where dict_id = #{dictId}
-
-
- delete from sys_dict_type where dict_id in
-
- #{dictId}
-
-
-
- update sys_dict_type
-
- dict_name = #{dictName},
- dict_type = #{dictType},
- status = #{status},
- remark = #{remark},
- update_by = #{updateBy},
- update_time = sysdate()
-
- where dict_id = #{dictId}
-
-
-
- insert into sys_dict_type(
- dict_name,
- dict_type,
- status,
- remark,
- create_by,
- create_time
- )values(
- #{dictName},
- #{dictType},
- #{status},
- #{remark},
- #{createBy},
- sysdate()
- )
-
-
+
+ delete from sys_dict_type where dict_id in
+
+ #{dictId}
+
+
+
+
+ update sys_dict_type
+
+ dict_name = #{dictName},
+ dict_type = #{dictType},
+ status = #{status},
+ remark = #{remark},
+ update_by = #{updateBy},
+ update_time = sysdate()
+
+ where dict_id = #{dictId}
+
+
+
+ insert into sys_dict_type(
+ dict_name,
+ dict_type,
+ status,
+ remark,
+ create_by,
+ create_time
+ )values(
+ #{dictName},
+ #{dictType},
+ #{status},
+ #{remark},
+ #{createBy},
+ sysdate()
+ )
+
+
\ No newline at end of file
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
index a2ac5b4e5..d79828ce4 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
@@ -33,10 +33,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND login_name like concat('%', #{loginName}, '%')
-
+
and date_format(login_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
-
+
and date_format(login_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
index d972ea5ec..c0ca3250c 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
@@ -43,10 +43,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND oper_name like concat('%', #{operName}, '%')
-
+
and date_format(oper_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
-
+
and date_format(oper_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
index 8d810c395..4936f84e2 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -48,10 +48,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND r.data_scope = #{dataScope}
-
+
and date_format(r.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
-
+
and date_format(r.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index 96b99bad5..046d065bf 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -68,17 +68,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND u.phonenumber like concat('%', #{phonenumber}, '%')
-
+
AND date_format(u.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
-
+
AND date_format(u.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE FIND_IN_SET (#{deptId},ancestors) ))
+
- ${params.dataScope}
+ #{params.dataScope}
+