From 62f4d8af4d387ed88c4e376093d3750b81d3cf34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B5=E9=A3=9E=E5=AE=87?= <2684146481@qq.com> Date: Thu, 3 Aug 2023 08:49:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4middle=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzims-middle/src/main/resources/db/1.0.0.sql | 15 ++++++++++++++- .../hzims-middle/src/main/resources/db/1.0.1.sql | 5 ----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/hzims-service/hzims-middle/src/main/resources/db/1.0.0.sql b/hzims-service/hzims-middle/src/main/resources/db/1.0.0.sql index ac22bdf..596cf1d 100644 --- a/hzims-service/hzims-middle/src/main/resources/db/1.0.0.sql +++ b/hzims-service/hzims-middle/src/main/resources/db/1.0.0.sql @@ -12,6 +12,8 @@ CREATE TABLE `hzims-middle`.`hzims_process_type` ( PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作流审批类型' ROW_FORMAT = Dynamic; +ALTER TABLE `hzims-middle`.`hzims_statistics` ADD COLUMN `sort` int(11) NULL DEFAULT NULL COMMENT '排序' AFTER `update_time`; + ALTER TABLE `hzims-middle`.`hzims_statistics` MODIFY COLUMN `module_name_num` int(11) NULL DEFAULT 0 COMMENT '功能模块统计' AFTER `module_name`; ALTER TABLE `hzims-middle`.`hzims_statistics` MODIFY COLUMN `date_calculated` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '统计日期' AFTER `module_name_num`; @@ -44,10 +46,21 @@ CREATE TABLE `hzims-middle`.`hzims_workflow_operation_log` ( `handleType` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' 根据handleType区分是用户还是候选组角色 标识 0是用户 1是角色', `create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', - `is_deleted` tinyint(4) NULL DEFAULT NULL COMMENT '是否逻辑删除,0 可用,1. 不可用', + `is_deleted` tinyint(1) NULL DEFAULT 0 COMMENT '是否逻辑删除,0 可用,1. 不可用', + `is_operation_log` tinyint(1) NULL DEFAULT 0 COMMENT '1 正常日志 0 错误日志', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作流操作日志' ROW_FORMAT = Dynamic; +CREATE TABLE `hzims-middle`.`log_options_module_name` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `module_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '功能模块', + `sort` int(11) NULL DEFAULT NULL COMMENT '排序', + `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', + `update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', + `is_deleted` tinyint(4) NULL DEFAULT 0 COMMENT '逻辑删除 (0 可用 1 删除)', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + CREATE TABLE `hzims-middle`.`process_dict` ( `dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '票据编码', `dict_sort` int(4) NULL DEFAULT 0 COMMENT '票据排序', diff --git a/hzims-service/hzims-middle/src/main/resources/db/1.0.1.sql b/hzims-service/hzims-middle/src/main/resources/db/1.0.1.sql index 32c5df5..2e351c5 100644 --- a/hzims-service/hzims-middle/src/main/resources/db/1.0.1.sql +++ b/hzims-service/hzims-middle/src/main/resources/db/1.0.1.sql @@ -1,8 +1,3 @@ -alter table hzims_workflow_operation_log add is_operation_log tinyint(1) comment '1 正常日志 0 错误日志'; - -alter table hzims_statistics add sort int comment '排序'; - - create table log_options_module_name ( id bigint primary key auto_increment,