From f8c079c65121336a9176c2cf9f068b8524d6a887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 7 Mar 2023 22:50:58 +0800 Subject: [PATCH] =?UTF-8?q?*=20update=20=E4=BC=98=E5=8C=96=20=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=AE=A1=E7=90=86=E4=BD=BF=E7=94=A8=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E6=9F=A5=E8=AF=A2=E6=80=A7=E8=83=BD=20*=20up?= =?UTF-8?q?date=20=E4=BC=98=E5=8C=96=20=E6=A1=86=E6=9E=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=A3=80=E7=B4=A2=E4=BD=BF=E7=94=A8=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=2000:00:00=20-=2023:59:59?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/common/constant/UserConstants.java | 6 ------ .../src/main/resources/vm/vue/index-tree.vue.vm | 3 ++- .../src/main/resources/vm/vue/index.vue.vm | 3 ++- .../main/resources/vm/vue/v3/index-tree.vue.vm | 3 ++- .../src/main/resources/vm/vue/v3/index.vue.vm | 4 ++-- ruoyi-ui/src/views/demo/demo/index.vue | 3 ++- ruoyi-ui/src/views/demo/tree/index.vue | 3 ++- ruoyi-ui/src/views/monitor/logininfor/index.vue | 3 ++- ruoyi-ui/src/views/monitor/operlog/index.vue | 3 ++- ruoyi-ui/src/views/system/config/index.vue | 3 ++- ruoyi-ui/src/views/system/dict/index.vue | 3 ++- ruoyi-ui/src/views/system/oss/index.vue | 3 ++- ruoyi-ui/src/views/system/role/index.vue | 3 ++- ruoyi-ui/src/views/system/user/index.vue | 3 ++- script/sql/oracle/oracle_ry_vue_4.X.sql | 5 +++++ script/sql/postgres/postgres_ry_vue_4.X.sql | 9 +++++++++ script/sql/ry_vue_4.X.sql | 9 +++++++-- script/sql/sqlserver/sqlserver_ry_vue_4.X.sql | 15 +++++++++++++++ 18 files changed, 62 insertions(+), 22 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java index 9f800be2f..4a095faad 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java @@ -112,12 +112,6 @@ public interface UserConstants { */ String INNER_LINK = "InnerLink"; - /** - * 校验返回结果码 - */ - String UNIQUE = "0"; - String NOT_UNIQUE = "1"; - /** * 用户名长度限制 */ diff --git a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm index 2bc699a20..fd07e4d72 100644 --- a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm +++ b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm @@ -51,11 +51,12 @@ #end diff --git a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm index e645b6bb8..7e41538e7 100644 --- a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm +++ b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm @@ -51,11 +51,12 @@ #end diff --git a/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm index 663893a2c..4f109531b 100644 --- a/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm +++ b/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm @@ -50,11 +50,12 @@ #end diff --git a/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm index 0b15445b4..705394050 100644 --- a/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm +++ b/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm @@ -50,11 +50,11 @@ #end diff --git a/ruoyi-ui/src/views/demo/demo/index.vue b/ruoyi-ui/src/views/demo/demo/index.vue index 65387c9a5..2bfefd47f 100644 --- a/ruoyi-ui/src/views/demo/demo/index.vue +++ b/ruoyi-ui/src/views/demo/demo/index.vue @@ -24,11 +24,12 @@ v-model="daterangeCreateTime" size="small" 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']" > diff --git a/ruoyi-ui/src/views/demo/tree/index.vue b/ruoyi-ui/src/views/demo/tree/index.vue index 6cfa7f243..d66c6f96e 100644 --- a/ruoyi-ui/src/views/demo/tree/index.vue +++ b/ruoyi-ui/src/views/demo/tree/index.vue @@ -15,11 +15,12 @@ v-model="daterangeCreateTime" size="small" 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']" > diff --git a/ruoyi-ui/src/views/monitor/logininfor/index.vue b/ruoyi-ui/src/views/monitor/logininfor/index.vue index 8a9b17abf..8fe2e8e44 100644 --- a/ruoyi-ui/src/views/monitor/logininfor/index.vue +++ b/ruoyi-ui/src/views/monitor/logininfor/index.vue @@ -38,11 +38,12 @@ diff --git a/ruoyi-ui/src/views/monitor/operlog/index.vue b/ruoyi-ui/src/views/monitor/operlog/index.vue index c1b537789..8e672f91f 100644 --- a/ruoyi-ui/src/views/monitor/operlog/index.vue +++ b/ruoyi-ui/src/views/monitor/operlog/index.vue @@ -53,11 +53,12 @@ diff --git a/ruoyi-ui/src/views/system/config/index.vue b/ruoyi-ui/src/views/system/config/index.vue index 3ab81fc20..984b7e29b 100644 --- a/ruoyi-ui/src/views/system/config/index.vue +++ b/ruoyi-ui/src/views/system/config/index.vue @@ -33,11 +33,12 @@ diff --git a/ruoyi-ui/src/views/system/dict/index.vue b/ruoyi-ui/src/views/system/dict/index.vue index b6ed788a6..2102df0b6 100644 --- a/ruoyi-ui/src/views/system/dict/index.vue +++ b/ruoyi-ui/src/views/system/dict/index.vue @@ -38,11 +38,12 @@ diff --git a/ruoyi-ui/src/views/system/oss/index.vue b/ruoyi-ui/src/views/system/oss/index.vue index 9f8557ca6..d830f1bfd 100644 --- a/ruoyi-ui/src/views/system/oss/index.vue +++ b/ruoyi-ui/src/views/system/oss/index.vue @@ -33,11 +33,12 @@ v-model="daterangeCreateTime" size="small" 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']" > diff --git a/ruoyi-ui/src/views/system/role/index.vue b/ruoyi-ui/src/views/system/role/index.vue index ca02f3ab1..91c582d41 100644 --- a/ruoyi-ui/src/views/system/role/index.vue +++ b/ruoyi-ui/src/views/system/role/index.vue @@ -38,11 +38,12 @@ diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index b2120e6d4..feecc022b 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -67,11 +67,12 @@ diff --git a/script/sql/oracle/oracle_ry_vue_4.X.sql b/script/sql/oracle/oracle_ry_vue_4.X.sql index 9b20c253c..6b0e458c5 100644 --- a/script/sql/oracle/oracle_ry_vue_4.X.sql +++ b/script/sql/oracle/oracle_ry_vue_4.X.sql @@ -531,6 +531,9 @@ create table sys_oper_log ( ); alter table sys_oper_log add constraint pk_sys_oper_log primary key (oper_id); +create unique index idx_sys_oper_log_bt on sys_oper_log (business_type); +create unique index idx_sys_oper_log_s on sys_oper_log (status); +create unique index idx_sys_oper_log_ot on sys_oper_log (oper_time); comment on table sys_oper_log is '操作日志记录'; comment on column sys_oper_log.oper_id is '日志主键'; @@ -708,6 +711,8 @@ create table sys_logininfor ( ); alter table sys_logininfor add constraint pk_sys_logininfor primary key (info_id); +create unique index idx_sys_logininfor_s on sys_logininfor (status); +create unique index idx_sys_logininfor_lt on sys_logininfor (login_time); comment on table sys_logininfor is '系统访问记录'; comment on column sys_logininfor.info_id is '访问ID'; diff --git a/script/sql/postgres/postgres_ry_vue_4.X.sql b/script/sql/postgres/postgres_ry_vue_4.X.sql index 1db2cf8f4..1f202f83a 100644 --- a/script/sql/postgres/postgres_ry_vue_4.X.sql +++ b/script/sql/postgres/postgres_ry_vue_4.X.sql @@ -540,6 +540,10 @@ create table if not exists sys_oper_log constraint sys_oper_log_pk primary key (oper_id) ); +create unique index idx_sys_oper_log_bt ON sys_oper_log (business_type); +create unique index idx_sys_oper_log_s ON sys_oper_log (status); +create unique index idx_sys_oper_log_ot ON sys_oper_log (oper_time); + comment on table sys_oper_log is '操作日志记录'; comment on column sys_oper_log.oper_id is '日志主键'; comment on column sys_oper_log.title is '模块标题'; @@ -576,6 +580,8 @@ create table if not exists sys_dict_type constraint sys_dict_type_pk primary key (dict_id) ); +create unique index sys_dict_type_index1 ON sys_dict_type (dict_type); + comment on table sys_dict_type is '字典类型表'; comment on column sys_dict_type.dict_id is '字典主键'; comment on column sys_dict_type.dict_name is '字典名称'; @@ -720,6 +726,9 @@ create table if not exists sys_logininfor constraint sys_logininfor_pk primary key (info_id) ); +create unique index idx_sys_logininfor_s ON sys_logininfor (status); +create unique index idx_sys_logininfor_lt ON sys_logininfor (login_time); + comment on table sys_logininfor is '系统访问记录'; comment on column sys_logininfor.info_id is '访问ID'; comment on column sys_logininfor.user_name is '用户账号'; diff --git a/script/sql/ry_vue_4.X.sql b/script/sql/ry_vue_4.X.sql index 69ed85b19..7ad19bce6 100644 --- a/script/sql/ry_vue_4.X.sql +++ b/script/sql/ry_vue_4.X.sql @@ -429,7 +429,10 @@ create table sys_oper_log ( status int(1) default 0 comment '操作状态(0正常 1异常)', error_msg varchar(2000) default '' comment '错误消息', oper_time datetime 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 comment = '操作日志记录'; @@ -552,7 +555,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 comment = '系统访问记录'; diff --git a/script/sql/sqlserver/sqlserver_ry_vue_4.X.sql b/script/sql/sqlserver/sqlserver_ry_vue_4.X.sql index e992c567d..56be6bcf2 100644 --- a/script/sql/sqlserver/sqlserver_ry_vue_4.X.sql +++ b/script/sql/sqlserver/sqlserver_ry_vue_4.X.sql @@ -737,6 +737,9 @@ CREATE TABLE sys_dict_type ON [PRIMARY] GO +CREATE NONCLUSTERED INDEX sys_dict_type_index1 ON sys_dict_type (dict_type) +GO + EXEC sys.sp_addextendedproperty 'MS_Description', N'字典主键' , 'SCHEMA', N'dbo', @@ -832,6 +835,11 @@ CREATE TABLE sys_logininfor ON [PRIMARY] GO +CREATE NONCLUSTERED INDEX idx_sys_logininfor_s ON sys_logininfor (status) +GO +CREATE NONCLUSTERED INDEX idx_sys_logininfor_lt ON sys_logininfor (login_time) +GO + EXEC sys.sp_addextendedproperty 'MS_Description', N'访问ID' , 'SCHEMA', N'dbo', @@ -1324,6 +1332,13 @@ CREATE TABLE sys_oper_log ON [PRIMARY] GO +CREATE NONCLUSTERED INDEX idx_sys_oper_log_bt ON sys_oper_log (business_type) +GO +CREATE NONCLUSTERED INDEX idx_sys_oper_log_s ON sys_oper_log (status) +GO +CREATE NONCLUSTERED INDEX idx_sys_oper_log_ot ON sys_oper_log (oper_time) +GO + EXEC sys.sp_addextendedproperty 'MS_Description', N'日志主键' , 'SCHEMA', N'dbo',