Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
前端资源
RuoYi-Vue
提交
6523fe59
R
RuoYi-Vue
项目概览
前端资源
/
RuoYi-Vue
10 个月 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
RuoYi-Vue
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6523fe59
编写于
2月 23, 2023
作者:
R
RuoYi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
日志管理使用索引提升查询性能
上级
90970eb9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
8 deletion
+15
-8
ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
.../src/main/resources/mapper/system/SysLogininforMapper.xml
+2
-2
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
...tem/src/main/resources/mapper/system/SysOperLogMapper.xml
+2
-2
ruoyi-ui/src/views/monitor/logininfor/index.vue
ruoyi-ui/src/views/monitor/logininfor/index.vue
+2
-1
ruoyi-ui/src/views/monitor/operlog/index.vue
ruoyi-ui/src/views/monitor/operlog/index.vue
+2
-1
sql/ry_20230223.sql
sql/ry_20230223.sql
+7
-2
未找到文件。
ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml
浏览文件 @
6523fe59
...
...
@@ -34,10 +34,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND user_name like concat('%', #{userName}, '%')
</if>
<if
test=
"params.beginTime != null and params.beginTime != ''"
>
<!-- 开始时间检索 -->
and date_format(login_time,'%y%m%d')
>
= date_format(#{params.beginTime},'%y%m%d')
AND login_time
>
= #{params.beginTime}
</if>
<if
test=
"params.endTime != null and params.endTime != ''"
>
<!-- 结束时间检索 -->
and date_format(login_time,'%y%m%d')
<
= date_format(#{params.endTime},'%y%m%d')
AND login_time
<
= #{params.endTime}
</if>
</where>
order by info_id desc
...
...
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
浏览文件 @
6523fe59
...
...
@@ -56,10 +56,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND oper_name like concat('%', #{operName}, '%')
</if>
<if
test=
"params.beginTime != null and params.beginTime != ''"
>
<!-- 开始时间检索 -->
and date_format(oper_time,'%y%m%d')
>
= date_format(#{params.beginTime},'%y%m%d')
AND oper_time
>
= #{params.beginTime}
</if>
<if
test=
"params.endTime != null and params.endTime != ''"
>
<!-- 结束时间检索 -->
and date_format(oper_time,'%y%m%d')
<
= date_format(#{params.endTime},'%y%m%d')
AND oper_time
<
= #{params.endTime}
</if>
</where>
order by oper_id desc
...
...
ruoyi-ui/src/views/monitor/logininfor/index.vue
浏览文件 @
6523fe59
...
...
@@ -38,11 +38,12 @@
<el-date-picker
v-model=
"dateRange"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:default-time=
"['00:00:00', '23:59:59']"
></el-date-picker>
</el-form-item>
<el-form-item>
...
...
ruoyi-ui/src/views/monitor/operlog/index.vue
浏览文件 @
6523fe59
...
...
@@ -53,11 +53,12 @@
<el-date-picker
v-model=
"dateRange"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:default-time=
"['00:00:00', '23:59:59']"
></el-date-picker>
</el-form-item>
<el-form-item>
...
...
sql/ry_2023022
1
.sql
→
sql/ry_2023022
3
.sql
浏览文件 @
6523fe59
...
...
@@ -433,7 +433,10 @@ create table sys_oper_log (
error_msg
varchar
(
2000
)
default
''
comment
'错误消息'
,
oper_time
datetime
comment
'操作时间'
,
cost_time
bigint
(
20
)
default
0
comment
'消耗时间'
,
primary
key
(
oper_id
)
primary
key
(
oper_id
),
key
idx_sys_oper_log_bt
(
business_type
),
key
idx_sys_oper_log_s
(
status
),
key
idx_sys_oper_log_ot
(
oper_time
)
)
engine
=
innodb
auto_increment
=
100
comment
=
'操作日志记录'
;
...
...
@@ -562,7 +565,9 @@ create table sys_logininfor (
status
char
(
1
)
default
'0'
comment
'登录状态(0成功 1失败)'
,
msg
varchar
(
255
)
default
''
comment
'提示消息'
,
login_time
datetime
comment
'访问时间'
,
primary
key
(
info_id
)
primary
key
(
info_id
),
key
idx_sys_logininfor_s
(
status
),
key
idx_sys_logininfor_lt
(
login_time
)
)
engine
=
innodb
auto_increment
=
100
comment
=
'系统访问记录'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录