微服务版后端初始化

This commit is contained in:
yaoyn
2025-02-08 17:51:37 +08:00
parent 54af6be188
commit da009a7cc4
1897 changed files with 429541 additions and 81 deletions

View File

@ -0,0 +1,48 @@
/*
Navicat Premium Data Transfer
Source Server : 124root
Source Server Type : MySQL
Source Server Version : 80023
Source Host : 192.168.0.124:3306
Source Schema : h_test
Target Server Type : MySQL
Target Server Version : 80023
File Encoding : 65001
Date: 27/02/2024 16:17:13
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for xjr_file
-- ----------------------------
DROP TABLE IF EXISTS `xjr_file`;
CREATE TABLE `xjr_file` (
`id` bigint NOT NULL COMMENT '文件主键',
`folder_id` bigint NULL DEFAULT NULL COMMENT '附件夹主键',
`file_name` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件名称',
`file_url` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件路径',
`file_size` bigint NULL DEFAULT NULL COMMENT '文件大小',
`file_suffiex` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件后缀',
`file_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件类型',
`download_count` int NULL DEFAULT NULL COMMENT '下载次数',
`process_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '关联的流程id',
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
`create_user_id` bigint NULL DEFAULT NULL,
`create_date` datetime(3) NULL DEFAULT NULL,
`modify_user_id` bigint NULL DEFAULT NULL,
`modify_date` datetime(3) NULL DEFAULT NULL,
`delete_mark` int NULL DEFAULT NULL,
`enabled_mark` int NULL DEFAULT NULL,
`th_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '缩略图路径',
`th_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '缩略图名称',
`th_size` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '缩略图大小',
`th_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '缩略图mini类型',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '文件关联关系表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;

View File

@ -0,0 +1,21 @@
ALTER TABLE xjr_department ADD COLUMN is_sync VARCHAR(1) NOT NULL DEFAULT 'Y'
COMMENT '是否同步';
ALTER TABLE xjr_user ADD COLUMN is_sync VARCHAR(1) NOT NULL DEFAULT 'Y'
COMMENT '是否同步';
ALTER TABLE xjr_user_dept_relation ADD COLUMN is_sync VARCHAR(1) NOT NULL DEFAULT 'Y'
COMMENT '是否同步';
COMMENT ON
COLUMN "xjr_department"."department_type" IS '部门类型2板块1公司0部门';
ALTER TABLE xjr_user_dept_relation ADD COLUMN is_main VARCHAR(1) NOT NULL DEFAULT 'Y'
COMMENT '是否主职/默认部门';
ALTER TABLE xjr_user_dept_relation ADD COLUMN sort_code integer
COMMENT '在该部门内的排序';
-- Auto-generated SQL script #202403261200
INSERT INTO xjr_menu_button (id,name,menu_id,code,url,method)
VALUES (1664153798119171151,'同步组织人员',1419276797568356352,'user:syncOrgAndUser','syncOrgAndUser',1);

View File

@ -0,0 +1,51 @@
ALTER TABLE "xjr_department" ADD COLUMN is_sync CHARACTER VARYING(
1 char
) NOT NULL DEFAULT 'Y';
COMMENT ON
COLUMN "xjr_department".is_sync IS '是否同步';
ALTER TABLE "xjr_user" ADD COLUMN is_sync CHARACTER VARYING(
1 char
) NOT NULL DEFAULT 'Y';
COMMENT ON
COLUMN "xjr_user".is_sync IS '是否同步';
ALTER TABLE "xjr_user_dept_relation" ADD COLUMN is_sync CHARACTER VARYING(
1 char
) NOT NULL DEFAULT 'Y';
COMMENT ON
COLUMN "xjr_user_dept_relation".is_sync IS '是否同步';
COMMENT ON
COLUMN "xjr_department"."department_type" IS '部门类型2板块1公司0部门';
ALTER TABLE "xjr_user_dept_relation" ADD COLUMN is_main CHARACTER VARYING(
1 char
) NOT NULL DEFAULT 'Y'::varchar;
COMMENT ON
COLUMN "xjr_user_dept_relation".is_main IS '是否主职/默认部门';
ALTER TABLE "xjr_user_dept_relation" ADD COLUMN sort_code integer;
COMMENT ON
COLUMN "xjr_user_dept_relation".sort_code IS '在该部门内的排序';
-- Auto-generated SQL script #202403261200
INSERT INTO "xjr_menu_button" ("id","name","menu_id","code","url","method")
VALUES (1664153798119171151,'同步组织人员',1419276797568356352,'user:syncOrgAndUser','syncOrgAndUser',1);

View File

@ -0,0 +1,7 @@
ALTER TABLE xjr_workflow_schema MODIFY COLUMN code VARCHAR(150);
ALTER TABLE xjr_workflow_schema MODIFY COLUMN name VARCHAR(200);
ALTER TABLE xjr_workflow_schema_draft MODIFY COLUMN code VARCHAR(150);
ALTER TABLE xjr_workflow_schema_draft MODIFY COLUMN name VARCHAR(200);

View File

@ -0,0 +1,15 @@
ALTER TABLE "xjr_workflow_schema" ALTER COLUMN "code" TYPE CHARACTER VARYING(
150 char
);
ALTER TABLE "xjr_workflow_schema" ALTER COLUMN "name" TYPE CHARACTER VARYING(
200 char
);
ALTER TABLE "xjr_workflow_schema_draft" ALTER COLUMN "code" TYPE CHARACTER VARYING(
150 char
);
ALTER TABLE "xjr_workflow_schema_draft" ALTER COLUMN "name" TYPE CHARACTER VARYING(
200 char
);

View File

@ -0,0 +1,164 @@
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1589823150509592578, 1419273666632498176, 'BI', '数据大屏', '30009', 'ant-design:dot-chart-outlined', 'http://localhost:4100', 'IFrame', NULL, '1111', 1, 1, 1, 1, 1, 0, 9, '111', 1, '2022-11-08 11:32:31', 1000000000000000000, '2023-05-31 11:01:15', 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1625770113225646082, 0, 'chatGPT', 'chatGPT', 'chatGPT', 'ant-design:bar-chart-outlined', '/chat-gpt', '/demo/chatgpt/index', NULL, NULL, 1, 1, 1, 1, 0, 0, 22, NULL, 1, '2023-02-15 16:12:55', NULL, NULL, 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1672802215783436290, 0, '计划任务', '计划任务', 'job', NULL, 'http://192.168.0.124:7700/#/welcome?appName=xjrsoft-boot&password=123456', 'IFrame', 0, '', 1, 1, 1, 1, 1, NULL, 11, '', 1000000000000000000, '2023-06-25 11:01:42', NULL, NULL, 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1700041673784094722, 1419276797351038976, '租户管理', '租户管理', 'tenant', 'ant-design:idcard-outlined', '/tenant', '/system/tenant/index', 0, NULL, 1, 1, 1, 1, 0, NULL, 11, NULL, 3000000000000000000, '2023-09-08 15:01:35', NULL, NULL, 0, 1, 1, NULL);
ALTER TABLE xjr_dictionary_item
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_login_config
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_logo_config
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_menu_button
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_menu
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_menu_column
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_menu_form
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_subsystem
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_desktop_relation
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_department MODIFY COLUMN `department_type` int NULL COMMENT '部门类型3总部2板块1公司0部门';
ALTER TABLE xjr_workflow_schema
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_schema_auth
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_schema_draft
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_schema_history
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_app_authorize
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_app_func_design
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_app_menu
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_app_menu_button
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_app_menu_column
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_app_menu_form
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_app_page_design
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_code_schema
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_databaselink
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_datasource
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_file
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_form_history
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_form_release
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_form_template
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_professional_report
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_report
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_report_relation
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_visual
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_visual_category
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_visual_config
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_visual_db
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_visual_homerelation
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_visual_map
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_visual_release
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_visual_releaserelation
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_approve_record
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_circulated
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_delegate
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_draft
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_extra
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_form_relation
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_record
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_workflow_special_menu
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_liteflow_chain
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_liteflow_script
ADD COLUMN tenant_id bigint COMMENT '租户id';
ALTER TABLE xjr_tenant
ADD COLUMN root_department_id bigint COMMENT '租户根部门id';

View File

@ -0,0 +1,214 @@
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1589823150509592578, 1419273666632498176, 'BI', '数据大屏', '30009', 'ant-design:dot-chart-outlined', 'http://localhost:4100', 'IFrame', NULL, '1111', 1, 1, 1, 1, 1, 0, 9, '111', 1, '2022-11-08 11:32:31', 1000000000000000000, '2023-05-31 11:01:15', 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1625770113225646082, 0, 'chatGPT', 'chatGPT', 'chatGPT', 'ant-design:bar-chart-outlined', '/chat-gpt', '/demo/chatgpt/index', NULL, NULL, 1, 1, 1, 1, 0, 0, 22, NULL, 1, '2023-02-15 16:12:55', NULL, NULL, 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1672802215783436290, 0, '计划任务', '计划任务', 'job', NULL, 'http://192.168.0.124:7700/#/welcome?appName=xjrsoft-boot&password=123456', 'IFrame', 0, '', 1, 1, 1, 1, 1, NULL, 11, '', 1000000000000000000, '2023-06-25 11:01:42', NULL, NULL, 0, 1, 1, NULL);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id) VALUES (1700041673784094722, 1419276797351038976, '租户管理', '租户管理', 'tenant', 'ant-design:idcard-outlined', '/tenant', '/system/tenant/index', 0, NULL, 1, 1, 1, 1, 0, NULL, 11, NULL, 3000000000000000000, '2023-09-08 15:01:35', NULL, NULL, 0, 1, 1, NULL);
ALTER TABLE xjr_dictionary_item
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_dictionary_item."tenant_id" IS '租户id';
ALTER TABLE xjr_login_config
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_login_config."tenant_id" IS '租户id';
ALTER TABLE xjr_logo_config
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_logo_config."tenant_id" IS '租户id';
ALTER TABLE xjr_menu_button
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_menu_button."tenant_id" IS '租户id';
ALTER TABLE xjr_menu
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_menu."tenant_id" IS '租户id';
ALTER TABLE xjr_menu_column
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_menu_column."tenant_id" IS '租户id';
ALTER TABLE xjr_menu_form
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_menu_form."tenant_id" IS '租户id';
ALTER TABLE xjr_subsystem
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_subsystem."tenant_id" IS '租户id';
ALTER TABLE xjr_desktop_relation
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_desktop_relation."tenant_id" IS '租户id';
COMMENT ON
COLUMN xjr_department."department_type" IS '部门类型3总部2板块1公司0部门';
ALTER TABLE xjr_workflow_schema
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_schema."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_schema_auth
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_schema_auth."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_schema_draft
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_schema_draft."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_schema_history
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_schema_history."tenant_id" IS '租户id';
ALTER TABLE xjr_app_authorize
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_app_authorize."tenant_id" IS '租户id';
ALTER TABLE xjr_app_func_design
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_app_func_design."tenant_id" IS '租户id';
ALTER TABLE xjr_app_menu
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_app_menu."tenant_id" IS '租户id';
ALTER TABLE xjr_app_menu_button
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_app_menu_button."tenant_id" IS '租户id';
ALTER TABLE xjr_app_menu_column
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_app_menu_column."tenant_id" IS '租户id';
ALTER TABLE xjr_app_menu_form
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_app_menu_form."tenant_id" IS '租户id';
ALTER TABLE xjr_app_page_design
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_app_page_design."tenant_id" IS '租户id';
ALTER TABLE xjr_code_schema
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_code_schema."tenant_id" IS '租户id';
ALTER TABLE xjr_databaselink
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_databaselink."tenant_id" IS '租户id';
ALTER TABLE xjr_datasource
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_datasource."tenant_id" IS '租户id';
ALTER TABLE xjr_file
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_file."tenant_id" IS '租户id';
ALTER TABLE xjr_form_history
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_form_history."tenant_id" IS '租户id';
ALTER TABLE xjr_form_release
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_form_release."tenant_id" IS '租户id';
ALTER TABLE xjr_form_template
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_form_template."tenant_id" IS '租户id';
ALTER TABLE xjr_professional_report
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_professional_report."tenant_id" IS '租户id';
ALTER TABLE xjr_report
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_report."tenant_id" IS '租户id';
ALTER TABLE xjr_report_relation
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_report_relation."tenant_id" IS '租户id';
ALTER TABLE xjr_visual
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_visual."tenant_id" IS '租户id';
ALTER TABLE xjr_visual_category
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_visual_category."tenant_id" IS '租户id';
ALTER TABLE xjr_visual_config
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_visual_config."tenant_id" IS '租户id';
ALTER TABLE xjr_visual_db
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_visual_db."tenant_id" IS '租户id';
ALTER TABLE xjr_visual_homerelation
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_visual_homerelation."tenant_id" IS '租户id';
ALTER TABLE xjr_visual_map
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_visual_map."tenant_id" IS '租户id';
ALTER TABLE xjr_visual_release
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_visual_release."tenant_id" IS '租户id';
ALTER TABLE xjr_visual_releaserelation
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_visual_releaserelation."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_approve_record
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_approve_record."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_circulated
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_circulated."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_delegate
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_delegate."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_draft
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_draft."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_extra
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_extra."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_form_relation
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_form_relation."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_record
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_record."tenant_id" IS '租户id';
ALTER TABLE xjr_workflow_special_menu
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_workflow_special_menu."tenant_id" IS '租户id';
ALTER TABLE xjr_liteflow_chain
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_liteflow_chain."tenant_id" IS '租户id';
ALTER TABLE xjr_liteflow_script
ADD COLUMN "tenant_id" int8;
COMMENT ON COLUMN xjr_liteflow_script."tenant_id" IS '租户id';
ALTER TABLE xjr_tenant
ADD COLUMN "root_department_id" int8;
COMMENT ON COLUMN xjr_tenant."root_department_id" IS '租户根部门id';

View File

@ -0,0 +1,779 @@
UPDATE act_ge_bytearray
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ge_property
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ge_schema_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_hi_actinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_attachment
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_batch
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_caseactinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_caseinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_comment
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_dec_in
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_dec_out
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_decinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_detail
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_ext_task_log
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_identitylink
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_incident
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_job_log
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_op_log
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_procinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_taskinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_varinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_id_group
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_id_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_id_membership
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_id_tenant
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_id_tenant_member
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_id_user
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_re_camformdef
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_case_def
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_decision_def
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_decision_req_def
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_deployment
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_procdef
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_authorization
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ru_batch
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_case_execution
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_case_sentry_part
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_event_subscr
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_execution
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_ext_task
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_filter
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ru_identitylink
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_incident
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_job
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_jobdef
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_meter_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ru_task
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_task_meter_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ru_variable
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE base_data_scope
SET tenant_id=1
WHERE tenant_id is null;
UPDATE base_data_scope_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_apply
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_apply_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_bom
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_cus_gather_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_customer
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_customer_contacts
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_customer_follow
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_customer_gather
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_device_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_device_inspect
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_device_warn
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_instore_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_material
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_material_classes
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_material_property
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_outstore_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_purchase
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_purchase_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_sale
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_sale_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_store_receipt
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_store_receipt_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_supplier
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_supplier_formal
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_supplier_risk
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_supply_material
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_unit
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_unit_convert
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_unit_convert_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_unit_type
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_business_opportunity
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_contract_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_custom_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_custom_user
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_follow_contacts
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_follow_participants
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_follow_record
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_price_sheet
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_replay_record
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_cost_time
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_expense
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_expense_apply
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_expense_else
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_members
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_project_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_science_result
SET tenant_id=1
WHERE tenant_id is null;
UPDATE high_risk_operation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE high_risk_operation_person
SET tenant_id=1
WHERE tenant_id is null;
UPDATE high_risk_operation_step
SET tenant_id=1
WHERE tenant_id is null;
UPDATE magic_api_backup
SET tenant_id=1
WHERE tenant_id is null;
UPDATE magic_api_file
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_centralized_procure
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_change
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_guarantee
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_invoice
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_other
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_pay
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_pay_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_emergent_tenders
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_file
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_financial_contract
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_financial_estimates
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_financial_estimates_version
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_lot_divide
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_lot_divide_item
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_procure_approval
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_procure_dismantle
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_procure_dismantle_item
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_procure_lot
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_supplier_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_supplier_tenders
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_file
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_group
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_plan
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_plan_approval
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_result
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_result_item
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid_bidder
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid_member
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid_result
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid_result_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_contract
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_contract_acceptance
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_contract_acceptance_other
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_contract_other
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_initiation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_pay
SET tenant_id=1
WHERE tenant_id is null;
UPDATE supplier_bank
SET tenant_id=1
WHERE tenant_id is null;
UPDATE supplier_contact
SET tenant_id=1
WHERE tenant_id is null;
UPDATE supplier_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE t_order
SET tenant_id=1
WHERE tenant_id is null;
UPDATE t_order_product
SET tenant_id=1
WHERE tenant_id is null;
UPDATE t_product
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_17561
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_29210
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_29210_child_1263
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_29210_child_9674
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_70961
SET tenant_id=1
WHERE tenant_id is null;
UPDATE tb_mcq_daily
SET tenant_id=1
WHERE tenant_id is null;
UPDATE tb_station
SET tenant_id=1
UPDATE test
SET tenant_id=1
WHERE tenant_id is null;
UPDATE test_01
SET tenant_id=1
WHERE tenant_id is null;
UPDATE test_gen_gao
SET tenant_id=1
WHERE tenant_id is null;
UPDATE test_permission
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_authorize
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_func_design
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_menu
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_menu_button
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_menu_column
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_menu_form
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_page_design
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_area
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_assco_selection_data
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_authorize
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_bi_project
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_brand_commodity_test
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_brand_series_test
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_brand_test
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_child
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_child_table
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_code_rule
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_code_rule_seed
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_code_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_auth
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_auth_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_auth_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_auth_table_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_display
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_databaselink
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_datasource
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_demo
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_department
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_desktop_history
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_desktop_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_desktop_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_dictionary_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_dictionary_item
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_file
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_form_history
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_form_release
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_form_template
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_auth
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_category
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_output
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_params
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_language
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_language_type
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_liteflow_chain
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_liteflow_script
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_login_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_logo_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_menu
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_menu_button
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_menu_column
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_menu_form
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_message
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_multi
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_multi_child
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_multi_child_two
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_oa_news
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_oa_news_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_oa_schedule
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_parent
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_parent_table
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_post
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_print_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_print_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_professional_report
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_report
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_report_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_role
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_selection_data
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_stamp
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_subsystem
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_sync_datacenter_org_user
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_tenant
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_tenant_authorize
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_charge_dept
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_dept_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_desktop_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_post_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_role_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_category
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_db
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_homerelation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_map
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_release
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_releaserelation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_approve_record
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_circulated
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_delegate
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_draft
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_extra
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_form_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_record
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_schema_auth
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_schema_draft
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_schema_history
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_special_menu
SET tenant_id=1
WHERE tenant_id is null;

View File

@ -0,0 +1,779 @@
UPDATE act_ge_bytearray
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ge_property
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ge_schema_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_hi_actinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_attachment
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_batch
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_caseactinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_caseinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_comment
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_dec_in
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_dec_out
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_decinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_detail
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_ext_task_log
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_identitylink
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_incident
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_job_log
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_op_log
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_procinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_taskinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_hi_varinst
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_id_group
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_id_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_id_membership
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_id_tenant
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_id_tenant_member
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_id_user
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_re_camformdef
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_case_def
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_decision_def
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_decision_req_def
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_deployment
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_re_procdef
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_authorization
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ru_batch
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_case_execution
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_case_sentry_part
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_event_subscr
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_execution
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_ext_task
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_filter
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ru_identitylink
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_incident
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_job
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_jobdef
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_meter_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ru_task
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE act_ru_task_meter_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE act_ru_variable
SET tenant_id_=1
WHERE tenant_id_ is null;
UPDATE base_data_scope
SET tenant_id=1
WHERE tenant_id is null;
UPDATE base_data_scope_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_apply
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_apply_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_bom
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_cus_gather_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_customer
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_customer_contacts
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_customer_follow
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_customer_gather
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_device_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_device_inspect
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_device_warn
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_instore_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_material
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_material_classes
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_material_property
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_outstore_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_purchase
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_purchase_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_sale
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_sale_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_store_receipt
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_store_receipt_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_supplier
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_supplier_formal
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_supplier_risk
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_supply_material
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_unit
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_unit_convert
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_unit_convert_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE case_erp_unit_type
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_business_opportunity
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_contract_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_custom_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_custom_user
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_follow_contacts
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_follow_participants
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_follow_record
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_price_sheet
SET tenant_id=1
WHERE tenant_id is null;
UPDATE crm_replay_record
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_cost_time
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_expense
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_expense_apply
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_expense_else
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_members
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_project_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE dpm_science_result
SET tenant_id=1
WHERE tenant_id is null;
UPDATE high_risk_operation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE high_risk_operation_person
SET tenant_id=1
WHERE tenant_id is null;
UPDATE high_risk_operation_step
SET tenant_id=1
WHERE tenant_id is null;
UPDATE magic_api_backup
SET tenant_id=1
WHERE tenant_id is null;
UPDATE magic_api_file
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_centralized_procure
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_change
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_guarantee
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_invoice
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_other
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_pay
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_contract_pay_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_emergent_tenders
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_file
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_financial_contract
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_financial_estimates
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_financial_estimates_version
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_lot_divide
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_lot_divide_item
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_procure_approval
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_procure_dismantle
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_procure_dismantle_item
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_procure_lot
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_supplier_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_supplier_tenders
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_file
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_group
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_plan
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_plan_approval
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_result
SET tenant_id=1
WHERE tenant_id is null;
UPDATE pm_tenders_result_item
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid_bidder
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid_member
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid_result
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_bid_result_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_contract
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_contract_acceptance
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_contract_acceptance_other
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_contract_other
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_initiation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE project_pay
SET tenant_id=1
WHERE tenant_id is null;
UPDATE supplier_bank
SET tenant_id=1
WHERE tenant_id is null;
UPDATE supplier_contact
SET tenant_id=1
WHERE tenant_id is null;
UPDATE supplier_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE t_order
SET tenant_id=1
WHERE tenant_id is null;
UPDATE t_order_product
SET tenant_id=1
WHERE tenant_id is null;
UPDATE t_product
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_17561
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_29210
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_29210_child_1263
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_29210_child_9674
SET tenant_id=1
WHERE tenant_id is null;
UPDATE table_70961
SET tenant_id=1
WHERE tenant_id is null;
UPDATE tb_mcq_daily
SET tenant_id=1
WHERE tenant_id is null;
UPDATE tb_station
SET tenant_id=1
UPDATE test
SET tenant_id=1
WHERE tenant_id is null;
UPDATE test_01
SET tenant_id=1
WHERE tenant_id is null;
UPDATE test_gen_gao
SET tenant_id=1
WHERE tenant_id is null;
UPDATE test_permission
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_authorize
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_func_design
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_menu
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_menu_button
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_menu_column
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_menu_form
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_app_page_design
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_area
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_assco_selection_data
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_authorize
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_bi_project
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_brand_commodity_test
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_brand_series_test
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_brand_test
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_child
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_child_table
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_code_rule
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_code_rule_seed
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_code_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_auth
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_auth_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_auth_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_auth_table_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_data_display
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_databaselink
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_datasource
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_demo
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_department
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_desktop_history
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_desktop_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_desktop_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_dictionary_detail
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_dictionary_item
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_file
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_form_history
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_form_release
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_form_template
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_auth
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_category
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_info
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_output
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_params
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_interface_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_language
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_language_type
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_liteflow_chain
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_liteflow_script
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_log
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_login_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_logo_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_menu
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_menu_button
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_menu_column
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_menu_form
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_message
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_multi
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_multi_child
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_multi_child_two
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_oa_news
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_oa_news_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_oa_schedule
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_parent
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_parent_table
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_post
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_print_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_print_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_professional_report
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_report
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_report_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_role
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_selection_data
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_stamp
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_subsystem
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_sync_datacenter_org_user
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_tenant
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_tenant_authorize
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_charge_dept
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_dept_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_desktop_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_post_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_user_role_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_category
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_config
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_db
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_homerelation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_map
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_release
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_visual_releaserelation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_approve_record
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_circulated
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_delegate
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_draft
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_extra
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_form_relation
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_record
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_schema
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_schema_auth
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_schema_draft
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_schema_history
SET tenant_id=1
WHERE tenant_id is null;
UPDATE xjr_workflow_special_menu
SET tenant_id=1
WHERE tenant_id is null;

View File

@ -0,0 +1,42 @@
CREATE TABLE xjr_system_config (
id bigint NOT NULL COMMENT '主键',
code VARCHAR(255) NOT NULL COMMENT '配置编码',
name VARCHAR(255) NOT NULL COMMENT '配置名称',
value VARCHAR(1000) NULL COMMENT '配置值',
remark VARCHAR(255) NULL COMMENT '备注',
create_date timestamp(3) NULL COMMENT '创建时间',
create_user_id bigint NULL COMMENT '创建人id',
modify_date timestamp(3) NULL COMMENT '修改时间',
modify_user_id bigint NULL COMMENT '修改人id',
delete_mark integer NOT NULL COMMENT '删除标记',
enabled_mark integer NOT NULL COMMENT '启用标记',
tenant_id bigint NULL COMMENT '租户id',
PRIMARY KEY (id)
);
ALTER TABLE xjr_system_config COMMENT '系统配置项';
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id, tenant_id) VALUES (1817773926602588161, 1419276797351038976, '系统配置6845', '系统配置', 'systemConfig', 'ant-design:build-outlined', 'xitongpeizhi', '/system/systemConfig/index', 0, NULL, 1, 1, 1, 1, 0, 0, 100, NULL, 1000000000000000000, '2024-07-29 12:07:31.389', 1000000000000000000, '2024-07-31 11:48:41.812', 0, 1, 1, 1817773926321569792, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071361, '新增', 1817773926602588161, 'ant-design:plus-outlined', 'systemconfig:add', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071362, '编辑', 1817773926602588161, 'ant-design:form-outlined', 'systemconfig:edit', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071363, '刷新', 1817773926602588161, 'ant-design:reload-outlined', 'systemconfig:refresh', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071364, '查看', 1817773926602588161, 'ant-design:eye-outlined', 'systemconfig:view', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071365, '批量删除', 1817773926602588161, 'ant-design:delete-outlined', 'systemconfig:batchdelete', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071366, '复制数据', 1817773926602588161, 'ant-design:copy-outlined', 'systemconfig:copyData', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071367, '快速导入', 1817773926602588161, 'ant-design:import-outlined', 'systemconfig:import', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071368, '快速导出', 1817773926602588161, 'ant-design:export-outlined', 'systemconfig:export', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1817815698301071369, '删除', 1817773926602588161, 'ant-design:delete-outlined', 'systemconfig:delete', NULL, NULL, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1818484158651789314, 1817773926602588161, 'code', '编码', NULL, NULL, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1818484158651789315, 1817773926602588161, 'name', '名称', NULL, NULL, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1818484158651789316, 1817773926602588161, 'value', '配置值', NULL, NULL, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1818484158651789317, 1817773926602588161, 'remark', '备注', NULL, NULL, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1818493964993261569, 1817773926602588161, '8318dab17ae34a13bd6a3838bb5b57f1', '标题', NULL, 0, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1818493964993261570, 1817773926602588161, 'code', '编码', NULL, 1, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1818493964993261571, 1817773926602588161, 'name', '名称', NULL, 1, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1818493964993261572, 1817773926602588161, 'value', '配置值', NULL, 0, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1818493964993261573, 1817773926602588161, 'remark', '备注', NULL, 0, 0, NULL);

View File

@ -0,0 +1,62 @@
-- "xjr_system_config" definition
-- Drop table
-- DROP TABLE "xjr_system_config";
CREATE TABLE "xjr_system_config" (
"id" bigint NOT NULL,
"code" character varying(255 char) NOT NULL,
"name" character varying(255 char) NOT NULL,
"value" character varying(1000 char) NULL,
"remark" character varying(255 char) NULL,
"create_date" timestamp(3) without time zone NULL,
"create_user_id" bigint NULL,
"modify_date" timestamp(3) without time zone NULL,
"modify_user_id" bigint NULL,
"delete_mark" integer NOT NULL,
"enabled_mark" integer NOT NULL,
"tenant_id" bigint NULL,
PRIMARY KEY ("id")
);
COMMENT ON TABLE "xjr_system_config" IS '系统配置项';
-- Column comments
COMMENT ON COLUMN "xjr_system_config"."id" IS '主键';
COMMENT ON COLUMN "xjr_system_config"."code" IS '配置编码';
COMMENT ON COLUMN "xjr_system_config"."name" IS '配置名称';
COMMENT ON COLUMN "xjr_system_config"."value" IS '配置值';
COMMENT ON COLUMN "xjr_system_config"."remark" IS '备注';
COMMENT ON COLUMN "xjr_system_config"."create_date" IS '创建时间';
COMMENT ON COLUMN "xjr_system_config"."create_user_id" IS '创建人id';
COMMENT ON COLUMN "xjr_system_config"."modify_date" IS '修改时间';
COMMENT ON COLUMN "xjr_system_config"."modify_user_id" IS '修改人id';
COMMENT ON COLUMN "xjr_system_config"."delete_mark" IS '删除标记';
COMMENT ON COLUMN "xjr_system_config"."enabled_mark" IS '启用标记';
COMMENT ON COLUMN "xjr_system_config"."tenant_id" IS '租户id';
INSERT INTO "xjr_menu" ("id", "parent_id", "name", "title", "code", "icon", "path", "component", "component_type", "iframe_src", "menu_type", "display", "allow_modify", "allow_delete", "out_link", "keep_alive", "sort_code", "remark", "create_user_id", "create_date", "modify_user_id", "modify_date", "delete_mark", "enabled_mark", "system_id", "form_id", "tenant_id") VALUES (1817773926602588161, 1419276797351038976, '系统配置6845', '系统配置', 'systemConfig', 'ant-design:build-outlined', 'xitongpeizhi', '/system/systemConfig/index', 0, NULL, 1, 1, 1, 1, 0, 0, 100, NULL, 1000000000000000000, '2024-07-29 12:07:31.389', 1000000000000000000, '2024-07-31 11:48:41.812', 0, 1, 1, 1817773926321569792, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071361, '新增', 1817773926602588161, 'ant-design:plus-outlined', 'systemconfig:add', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071362, '编辑', 1817773926602588161, 'ant-design:form-outlined', 'systemconfig:edit', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071363, '刷新', 1817773926602588161, 'ant-design:reload-outlined', 'systemconfig:refresh', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071364, '查看', 1817773926602588161, 'ant-design:eye-outlined', 'systemconfig:view', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071365, '批量删除', 1817773926602588161, 'ant-design:delete-outlined', 'systemconfig:batchdelete', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071366, '复制数据', 1817773926602588161, 'ant-design:copy-outlined', 'systemconfig:copyData', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071367, '快速导入', 1817773926602588161, 'ant-design:import-outlined', 'systemconfig:import', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071368, '快速导出', 1817773926602588161, 'ant-design:export-outlined', 'systemconfig:export', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1817815698301071369, '删除', 1817773926602588161, 'ant-design:delete-outlined', 'systemconfig:delete', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1818484158651789314, 1817773926602588161, 'code', '编码', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1818484158651789315, 1817773926602588161, 'name', '名称', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1818484158651789316, 1817773926602588161, 'value', '配置值', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1818484158651789317, 1817773926602588161, 'remark', '备注', NULL, NULL, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1818493964993261569, 1817773926602588161, '8318dab17ae34a13bd6a3838bb5b57f1', '标题', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1818493964993261570, 1817773926602588161, 'code', '编码', NULL, 1, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1818493964993261571, 1817773926602588161, 'name', '名称', NULL, 1, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1818493964993261572, 1817773926602588161, 'value', '配置值', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1818493964993261573, 1817773926602588161, 'remark', '备注', NULL, 0, 0, NULL);

View File

@ -0,0 +1,52 @@
CREATE TABLE xjr_notice (
id bigint NOT NULL,
title varchar(500) NOT NULL COMMENT '标题',
TYPE bigint NOT NULL COMMENT '类型枚举id',
type_name varchar(100) COMMENT '类型字面值',
publisher bigint COMMENT '发布主体id',
publisher_type integer COMMENT '发布主体类型0用户/1组织',
publisher_name integer COMMENT '发布主体名称',
CONTENT TEXT COMMENT '发布内容',
attachs bigint COMMENT '附件组id',
status integer COMMENT '状态0草稿/1已发布/2已结束',
create_user_id bigint NOT NULL,
create_date timestamp NOT NULL,
modify_user_id bigint,
modify_date timestamp,
delete_mark integer NOT NULL DEFAULT 0,
enabled_mark integer NOT NULL DEFAULT 1,
dept_id bigint,
tenant_id bigint,
rule_user_id bigint
)COMMENT '通知、手动待办';
ALTER TABLE xjr_notice ADD CONSTRAINT con_incident_dev_xjr_notice_constraint_1 PRIMARY KEY (id);
CREATE TABLE xjr_notice_user (
id bigint NOT NULL,
notice_id bigint NOT NULL COMMENT '关联通知id',
user_id bigint NOT NULL,
is_read integer NOT NULL DEFAULT 0 COMMENT '是否已读1',
reply varchar(1000) COMMENT '回复',
create_user_id bigint NOT NULL,
create_date timestamp NOT NULL,
modify_user_id bigint,
modify_date timestamp,
delete_mark integer NOT NULL DEFAULT 0,
enabled_mark integer NOT NULL DEFAULT 1,
dept_id bigint,
tenant_id bigint
)COMMENT '通知用户表';
ALTER TABLE xjr_notice_user ADD CONSTRAINT con_incident_dev_xjr_notice_user_constraint_1 PRIMARY KEY (id);
ALTER TABLE xjr_notice ADD COLUMN `RANGE` integer NOT NULL DEFAULT 1 COMMENT '通知范围0公开/1指定用户';
ALTER TABLE xjr_department ADD COLUMN area_id bigint COMMENT '所在区域id区域表id';
ALTER TABLE xjr_notice ADD COLUMN params_json varchar(5000) COMMENT 'json 参数';
ALTER TABLE xjr_notice ADD COLUMN path varchar(500) COMMENT '路径';

View File

@ -0,0 +1,114 @@
CREATE TABLE xjr_notice (
id bigint NOT NULL,
title varchar(500) NOT NULL,
TYPE bigint NOT NULL,
type_name varchar(100),
publisher bigint,
publisher_type integer,
publisher_name integer,
CONTENT TEXT,
attachs bigint,
status integer,
create_user_id bigint NOT NULL,
create_date timestamp NOT NULL,
modify_user_id bigint,
modify_date timestamp,
delete_mark integer NOT NULL DEFAULT 0,
enabled_mark integer NOT NULL DEFAULT 1,
dept_id bigint,
tenant_id bigint,
rule_user_id bigint
);
ALTER TABLE xjr_notice SET
TABLESPACE "sys_default";
COMMENT ON
TABLE xjr_notice IS '通知、手动待办';
COMMENT ON
COLUMN xjr_notice.title IS '标题';
COMMENT ON
COLUMN xjr_notice.type IS '类型枚举id';
COMMENT ON
COLUMN xjr_notice.type_name IS '类型字面值';
COMMENT ON
COLUMN xjr_notice.publisher IS '发布主体id';
COMMENT ON
COLUMN xjr_notice.publisher_type IS '发布主体类型0用户/1组织';
COMMENT ON
COLUMN xjr_notice.publisher_name IS '发布主体名称';
COMMENT ON
COLUMN xjr_notice.content IS '发布内容';
COMMENT ON
COLUMN xjr_notice.attachs IS '附件组id';
COMMENT ON
COLUMN xjr_notice.status IS '状态0草稿/1已发布/2已结束';
ALTER TABLE xjr_notice ADD CONSTRAINT con_incident_dev_xjr_notice_constraint_1 PRIMARY KEY (id) ENABLE VALIDATE;
CREATE TABLE xjr_notice_user (
id bigint NOT NULL,
notice_id bigint NOT NULL,
user_id bigint NOT NULL,
is_read integer NOT NULL DEFAULT 0,
reply varchar(1000),
create_user_id bigint NOT NULL,
create_date timestamp NOT NULL,
modify_user_id bigint,
modify_date timestamp,
delete_mark integer NOT NULL DEFAULT 0,
enabled_mark integer NOT NULL DEFAULT 1,
dept_id bigint,
tenant_id bigint
);
ALTER TABLE xjr_notice_user SET
TABLESPACE "sys_default";
COMMENT ON
TABLE xjr_notice_user IS '通知用户表';
COMMENT ON
COLUMN xjr_notice_user.notice_id IS '关联通知id';
COMMENT ON
COLUMN xjr_notice_user.is_read IS '是否已读1';
COMMENT ON
COLUMN xjr_notice_user.reply IS '回复';
ALTER TABLE xjr_notice_user ADD CONSTRAINT con_incident_dev_xjr_notice_user_constraint_1 PRIMARY KEY (id) ENABLE VALIDATE;
ALTER TABLE xjr_notice ADD COLUMN RANGE integer NOT NULL DEFAULT 1;
COMMENT ON
COLUMN xjr_notice.RANGE IS '通知范围0公开/1指定用户';
ALTER TABLE xjr_department ADD COLUMN area_id bigint;
COMMENT ON
COLUMN xjr_department.area_id IS '所在区域id区域表id';
ALTER TABLE xjr_notice ADD COLUMN params_json varchar(5000);
COMMENT ON
COLUMN xjr_notice.params_json IS 'json 参数';
ALTER TABLE xjr_notice ADD COLUMN path varchar(500);
COMMENT ON
COLUMN xjr_notice.path IS '路径';

View File

@ -0,0 +1 @@
ALTER TABLE xjr_data_auth_table_relation MODIFY COLUMN table_name varchar(100);

View File

@ -0,0 +1 @@
ALTER TABLE "xjr_data_auth_table_relation" ALTER COLUMN "table_name" TYPE CHARACTER VARYING(100 char);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,51 @@
ALTER TABLE xjr_department ADD COLUMN equal_dept_id bigint COMMENT '等同部门id对平台公司是所管理板块注意造成死循环';
UPDATE xjr_department
SET equal_dept_id=432451392312531611
WHERE id=230227214110393142;
UPDATE xjr_department
SET equal_dept_id=301091911701601041
WHERE id=181164254207252249;
UPDATE xjr_department
SET equal_dept_id=231832551822043153
WHERE id=102549941291661721;
UPDATE xjr_department
SET equal_dept_id=233150193761041949
WHERE id=175215222631309485;
UPDATE xjr_department
SET equal_dept_id=206761142156213912
WHERE id=232179249126164255;
UPDATE xjr_department
SET equal_dept_id=106255231556925120
WHERE id=142518200832281161;
UPDATE xjr_department
SET equal_dept_id=189174211117302364
WHERE id=117221186201183246;
UPDATE xjr_department
SET equal_dept_id=181164254207252249
WHERE id=301091911701601041;
UPDATE xjr_department
SET equal_dept_id=102549941291661721
WHERE id=231832551822043153;
UPDATE xjr_department
SET equal_dept_id=232179249126164255
WHERE id=206761142156213912;
UPDATE xjr_department
SET equal_dept_id=142518200832281161
WHERE id=106255231556925120;
UPDATE xjr_department
SET equal_dept_id=230227214110393142
WHERE id=432451392312531611;
UPDATE xjr_department
SET equal_dept_id=175215222631309485
WHERE id=233150193761041949;
UPDATE xjr_department
SET equal_dept_id=117221186201183246
WHERE id=189174211117302364;
ALTER TABLE xjr_department ADD COLUMN company_lvl integer COMMENT '如果是公司,记录所在层级';
ALTER TABLE xjr_department MODIFY COLUMN area_id varchar(100) COMMENT '所在区域id字符串区域表id';

View File

@ -0,0 +1,60 @@
ALTER TABLE "xjr_department" ADD COLUMN equal_dept_id bigint;
COMMENT ON
COLUMN "xjr_department".equal_dept_id IS '等同部门id对平台公司是所管理板块注意造成死循环';
UPDATE "xjr_department"
SET "equal_dept_id"=432451392312531611
WHERE "id"=230227214110393142;
UPDATE "xjr_department"
SET "equal_dept_id"=301091911701601041
WHERE "id"=181164254207252249;
UPDATE "xjr_department"
SET "equal_dept_id"=231832551822043153
WHERE "id"=102549941291661721;
UPDATE "xjr_department"
SET "equal_dept_id"=233150193761041949
WHERE "id"=175215222631309485;
UPDATE "xjr_department"
SET "equal_dept_id"=206761142156213912
WHERE "id"=232179249126164255;
UPDATE "xjr_department"
SET "equal_dept_id"=106255231556925120
WHERE "id"=142518200832281161;
UPDATE "xjr_department"
SET "equal_dept_id"=189174211117302364
WHERE "id"=117221186201183246;
UPDATE "xjr_department"
SET "equal_dept_id"=181164254207252249
WHERE "id"=301091911701601041;
UPDATE "xjr_department"
SET "equal_dept_id"=102549941291661721
WHERE "id"=231832551822043153;
UPDATE "xjr_department"
SET "equal_dept_id"=232179249126164255
WHERE "id"=206761142156213912;
UPDATE "xjr_department"
SET "equal_dept_id"=142518200832281161
WHERE "id"=106255231556925120;
UPDATE "xjr_department"
SET "equal_dept_id"=230227214110393142
WHERE "id"=432451392312531611;
UPDATE "xjr_department"
SET "equal_dept_id"=175215222631309485
WHERE "id"=233150193761041949;
UPDATE "xjr_department"
SET "equal_dept_id"=117221186201183246
WHERE "id"=189174211117302364;
ALTER TABLE "xjr_department" ADD COLUMN company_lvl integer;
COMMENT ON
COLUMN "xjr_department".company_lvl IS '如果是公司,记录所在层级';
ALTER TABLE "xjr_department" ALTER COLUMN "area_id" TYPE varchar(100);
COMMENT ON
COLUMN "xjr_department"."area_id" IS '所在区域id字符串区域表id';

View File

@ -0,0 +1 @@
ALTER TABLE xjr_workflow_draft ADD COLUMN draft_name varchar(255) COMMENT '草稿标题';

View File

@ -0,0 +1,2 @@
ALTER TABLE xjr_workflow_draft ADD "draft_name" varchar(255);
COMMENT ON COLUMN "xjr_workflow_draft"."draft_name" IS '草稿标题';

View File

@ -0,0 +1,10 @@
/** 人员同步逻辑中设置为是,其他情况下为用户手动创建,应默认为否 **/
ALTER TABLE xjr_department MODIFY COLUMN is_sync varchar(1) NOT NULL DEFAULT 'N';
ALTER TABLE xjr_user_dept_relation
MODIFY COLUMN is_sync varchar(1) NOT NULL DEFAULT 'N',
MODIFY COLUMN is_main varchar(1) NOT NULL DEFAULT 'N';
ALTER TABLE xjr_user MODIFY COLUMN is_sync varchar(1) NOT NULL DEFAULT 'N';

View File

@ -0,0 +1,9 @@
/** 人员同步逻辑中设置为是,其他情况下为用户手动创建,应默认为否 **/
ALTER TABLE "xjr_department" ALTER COLUMN "is_sync" SET DEFAULT 'N';
ALTER TABLE "xjr_user_dept_relation"
ALTER COLUMN "is_sync" SET DEFAULT 'N',
ALTER COLUMN "is_main" SET DEFAULT 'N';
ALTER TABLE "xjr_user" ALTER COLUMN "is_sync" SET DEFAULT 'N';

View File

@ -0,0 +1,54 @@
CREATE TABLE xjr_comment (
id bigint NOT NULL,
business_code varchar(100) NOT NULL COMMENT '评论对象的业务编码',
business_id bigint NOT NULL COMMENT '评论对象的业务id',
content varchar(5000) NOT NULL COMMENT '评论内容',
attachs bigint NULL COMMENT '附件组id',
status integer NOT NULL DEFAULT 1 COMMENT '状态0草稿/1已发布/2已结束',
create_user_id bigint NOT NULL,
create_date timestamp(6) NOT NULL,
modify_user_id bigint NULL,
modify_date timestamp(6) NULL,
delete_mark integer NOT NULL,
enabled_mark integer NOT NULL,
dept_id bigint NULL,
tenant_id bigint NULL,
rule_user_id bigint NULL,
`range` integer NOT NULL DEFAULT 0 COMMENT '通知范围0公开/1指定用户',
PRIMARY KEY (id)
)COMMENT '评论、批注、督办表';
CREATE INDEX idx_comment_code ON
xjr_comment(business_code);
CREATE INDEX idx_comment_id ON
xjr_comment(
business_code,
business_id
);
INSERT INTO xjr_menu (id, parent_id, name, title, code, icon, path, component, component_type, iframe_src, menu_type, display, allow_modify, allow_delete, out_link, keep_alive, sort_code, remark, create_user_id, create_date, modify_user_id, modify_date, delete_mark, enabled_mark, system_id, form_id, tenant_id) VALUES (1847182551917883394, 1541225702878281730, '通用评论0939', '通用评论', 'comment', 'ant-design:pushpin-outlined', 'tongyongpinglun', '/system/comment/index', 0, NULL, 1, 1, 1, 1, 0, 0, 100, NULL, 1000000000000000000, '2024-10-18 15:46:54.040', NULL, NULL, 0, 1, 1, 1847182551611699200, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1847182673942769665, 1847182551917883394, 'businessCode', '评论对象编码', NULL, NULL, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1847182673942769666, 1847182551917883394, 'businessId', '评论对象ID', NULL, NULL, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1847182673942769667, 1847182551917883394, 'content', '评论内容', NULL, NULL, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1847182673942769668, 1847182551917883394, 'createUserId', '评论人', NULL, NULL, NULL);
INSERT INTO xjr_menu_column (id, menu_id, code, name, sort_code, description, tenant_id) VALUES (1847182673942769669, 1847182551917883394, 'createDate', '评论时间', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438017, '新增', 1847182551917883394, 'ant-design:plus-outlined', 'comment:add', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438018, '编辑', 1847182551917883394, 'ant-design:form-outlined', 'comment:edit', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438019, '刷新', 1847182551917883394, 'ant-design:reload-outlined', 'comment:refresh', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438020, '查看', 1847182551917883394, 'ant-design:eye-outlined', 'comment:view', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438021, '批量删除', 1847182551917883394, 'ant-design:delete-outlined', 'comment:batchdelete', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438022, '复制数据', 1847182551917883394, 'ant-design:copy-outlined', 'comment:copyData', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438023, '快速导入', 1847182551917883394, 'ant-design:import-outlined', 'comment:import', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438024, '快速导出', 1847182551917883394, 'ant-design:export-outlined', 'comment:export', NULL, NULL, NULL);
INSERT INTO xjr_menu_button (id, name, menu_id, icon, code, url, method, tenant_id) VALUES (1847182673892438025, '删除', 1847182551917883394, 'ant-design:delete-outlined', 'comment:delete', NULL, NULL, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1847182673942769670, 1847182551917883394, '12e79f0dec5844aaa838379519fb6f53', '标题', NULL, 0, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1847182673942769671, 1847182551917883394, 'businessCode', '评论对象编码', NULL, 0, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1847182673942769672, 1847182551917883394, 'businessId', '评论对象ID', NULL, 0, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1847182673942769673, 1847182551917883394, 'content', '评论内容', NULL, 1, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1847182673942769674, 1847182551917883394, 'attachs', '附件', NULL, 0, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1847182673942769675, 1847182551917883394, 'createUserId', '评论人', NULL, 0, 0, NULL);
INSERT INTO xjr_menu_form (id, menu_id, code, name, sort_code, is_required, parent_id, tenant_id) VALUES (1847182673942769676, 1847182551917883394, 'createDate', '评论时间', NULL, 0, 0, NULL);

View File

@ -0,0 +1,66 @@
CREATE TABLE xjr_comment (
id bigint NOT NULL,
business_code varchar(100) NOT NULL,
business_id bigint NOT NULL,
content character varying(5000 char) NOT NULL,
attachs bigint NULL,
status integer NOT NULL DEFAULT 1,
create_user_id bigint NOT NULL,
create_date timestamp(6) without time zone NOT NULL,
modify_user_id bigint NULL,
modify_date timestamp(6) without time zone NULL,
delete_mark integer NOT NULL,
enabled_mark integer NOT NULL,
dept_id bigint NULL,
tenant_id bigint NULL,
rule_user_id bigint NULL,
range integer NOT NULL DEFAULT 0,
PRIMARY KEY (id)
);
COMMENT ON TABLE xjr_comment IS '评论、批注、督办表';
COMMENT ON COLUMN xjr_comment.business_code IS '评论对象的业务编码';
COMMENT ON COLUMN xjr_comment.business_id IS '评论对象的业务id';
COMMENT ON COLUMN xjr_comment.content IS '评论内容';
COMMENT ON COLUMN xjr_comment.attachs IS '附件组id';
COMMENT ON COLUMN xjr_comment.status IS '状态0草稿/1已发布/2已结束';
COMMENT ON COLUMN xjr_comment.range IS '通知范围0公开/1指定用户';
CREATE INDEX idx_comment_code ON
"xjr_comment"
USING BTREE ("business_code");
CREATE INDEX idx_comment_id ON
"xjr_comment"
USING BTREE (
"business_code",
"business_id"
);
INSERT INTO "xjr_menu" ("id", "parent_id", "name", "title", "code", "icon", "path", "component", "component_type", "iframe_src", "menu_type", "display", "allow_modify", "allow_delete", "out_link", "keep_alive", "sort_code", "remark", "create_user_id", "create_date", "modify_user_id", "modify_date", "delete_mark", "enabled_mark", "system_id", "form_id", "tenant_id") VALUES (1847182551917883394, 1541225702878281730, '通用评论0939', '通用评论', 'comment', 'ant-design:pushpin-outlined', 'tongyongpinglun', '/system/comment/index', 0, NULL, 1, 1, 1, 1, 0, 0, 100, NULL, 1000000000000000000, '2024-10-18 15:46:54.040', NULL, NULL, 0, 1, 1, 1847182551611699200, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769665, 1847182551917883394, 'businessCode', '评论对象编码', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769666, 1847182551917883394, 'businessId', '评论对象ID', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769667, 1847182551917883394, 'content', '评论内容', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769668, 1847182551917883394, 'createUserId', '评论人', NULL, NULL, NULL);
INSERT INTO "xjr_menu_column" ("id", "menu_id", "code", "name", "sort_code", "description", "tenant_id") VALUES (1847182673942769669, 1847182551917883394, 'createDate', '评论时间', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438017, '新增', 1847182551917883394, 'ant-design:plus-outlined', 'comment:add', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438018, '编辑', 1847182551917883394, 'ant-design:form-outlined', 'comment:edit', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438019, '刷新', 1847182551917883394, 'ant-design:reload-outlined', 'comment:refresh', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438020, '查看', 1847182551917883394, 'ant-design:eye-outlined', 'comment:view', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438021, '批量删除', 1847182551917883394, 'ant-design:delete-outlined', 'comment:batchdelete', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438022, '复制数据', 1847182551917883394, 'ant-design:copy-outlined', 'comment:copyData', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438023, '快速导入', 1847182551917883394, 'ant-design:import-outlined', 'comment:import', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438024, '快速导出', 1847182551917883394, 'ant-design:export-outlined', 'comment:export', NULL, NULL, NULL);
INSERT INTO "xjr_menu_button" ("id", "name", "menu_id", "icon", "code", "url", "method", "tenant_id") VALUES (1847182673892438025, '删除', 1847182551917883394, 'ant-design:delete-outlined', 'comment:delete', NULL, NULL, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769670, 1847182551917883394, '12e79f0dec5844aaa838379519fb6f53', '标题', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769671, 1847182551917883394, 'businessCode', '评论对象编码', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769672, 1847182551917883394, 'businessId', '评论对象ID', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769673, 1847182551917883394, 'content', '评论内容', NULL, 1, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769674, 1847182551917883394, 'attachs', '附件', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769675, 1847182551917883394, 'createUserId', '评论人', NULL, 0, 0, NULL);
INSERT INTO "xjr_menu_form" ("id", "menu_id", "code", "name", "sort_code", "is_required", "parent_id", "tenant_id") VALUES (1847182673942769676, 1847182551917883394, 'createDate', '评论时间', NULL, 0, 0, NULL);

View File

@ -0,0 +1 @@
ALTER TABLE xjr_user ADD COLUMN duty_post varchar(500) COMMENT '岗位职务';

View File

@ -0,0 +1,4 @@
ALTER TABLE xjr_user ADD COLUMN duty_post varchar(500);
COMMENT ON
COLUMN xjr_user.duty_post IS '岗位职务';

View File

@ -0,0 +1,85 @@
-- user表添加detail 添加edit
INSERT INTO xjr_menu_button
(id, "name", menu_id, icon, code, url)
VALUES(1881969306155782197, '编辑', 1419276797568356352, 'ant-design:form-outlined', 'user:edit', NULL);
INSERT INTO xjr_menu_button
(id, "name", menu_id, icon, code, url)
VALUES(1881969306155782196, '查看详情', 1419276797568356352, 'ant-design:form-outlined', 'user:detail', NULL);
-- role 表添加detail
INSERT INTO xjr_menu_button
(id, "name", menu_id, icon, code, url, "method", tenant_id)
VALUES(1881969306155782153, '查看详情', 1419276797849243648, NULL, 'role:detail', NULL, NULL, NULL);
INSERT INTO xjr_menu_button
(id, "name", menu_id, icon, code, url, "method", tenant_id)
VALUES(1887694727659397122, '角色登出', 1419276797849243648, NULL, 'role:logoutRole', 'logoutRole', 1, NULL);
-- department 表添加detail
INSERT INTO xjr_menu_button
(id, "name", menu_id, icon, code, url)
VALUES(1881969306155782198, '查看详情', 1419276797720137728, 'ant-design:form-outlined', 'department:detail', NULL);
-- post 表添加detail
INSERT INTO xjr_menu_button
(id, "name", menu_id, icon, code, url)
VALUES(1881969306155782199, '查看详情', 1419276797978742784, 'ant-design:form-outlined', 'post:detail', NULL);
-- 数据权限
INSERT INTO xjr_menu_button
(id, "name", menu_id, icon, code, url, "method", tenant_id)
VALUES(1881969306155782154, '查看详情', 1635086300032897025, NULL, 'dataAuth:detail', NULL, NULL, NULL);
UPDATE xjr_menu_button
SET "name"='新增', menu_id=1635086300032897025, icon=NULL, code='dataAuth:add', url='add', "method"=1, tenant_id=NULL
WHERE code='index:add';
UPDATE xjr_menu_button
SET "name"='编辑', menu_id=1635086300032897025, icon=NULL, code='dataAuth:edit', url='edit', "method"=2, tenant_id=NULL
WHERE code='index:edit';
UPDATE xjr_menu_button
SET "name"='删除', menu_id=1635086300032897025, icon=NULL, code='dataAuth:delete', url='delete', "method"=3, tenant_id=NULL
WHERE code='index:delete';
UPDATE xjr_menu_button
SET "name"='查看授权对象', menu_id=1635086300032897025, icon=NULL, code='dataAuth:view', url='view', "method"=0, tenant_id=NULL
WHERE code='index:view';
UPDATE xjr_menu_button
SET "name"='查看详情', menu_id=1635086300032897025, icon=NULL, code='dataAuth:detail', url='detail', "method"=0, tenant_id=NULL
WHERE code='index:detail';
-- 系统配置
INSERT INTO xjr_menu_button
(id, "name", menu_id, icon, code, url, "method", tenant_id)
VALUES(1887312945902624773, '查看详情', 1817773926602588161, NULL, 'systemConfig:detail', 'detail', 0, NULL);
UPDATE xjr_menu_button
SET "name"='新增', menu_id=1817773926602588161, icon='ant-design:plus-outlined', code='systemConfig:add', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:add';
UPDATE xjr_menu_button
SET "name"='编辑', menu_id=1817773926602588161, icon='ant-design:form-outlined', code='systemConfig:edit', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:edit';
UPDATE xjr_menu_button
SET "name"='刷新', menu_id=1817773926602588161, icon='ant-design:reload-outlined', code='systemConfig:refresh', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:refresh';
UPDATE xjr_menu_button
SET "name"='查看', menu_id=1817773926602588161, icon='ant-design:eye-outlined', code='systemConfig:view', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:view';
UPDATE xjr_menu_button
SET "name"='批量删除', menu_id=1817773926602588161, icon='ant-design:delete-outlined', code='systemConfig:batchdelete', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:batchdelete';
UPDATE xjr_menu_button
SET "name"='复制数据', menu_id=1817773926602588161, icon='ant-design:copy-outlined', code='systemConfig:copyData', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:copyData';
UPDATE xjr_menu_button
SET "name"='快速导入', menu_id=1817773926602588161, icon='ant-design:import-outlined', code='systemConfig:import', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:import';
UPDATE xjr_menu_button
SET "name"='快速导出', menu_id=1817773926602588161, icon='ant-design:export-outlined', code='systemConfig:export', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:export';
UPDATE xjr_menu_button
SET "name"='删除', menu_id=1817773926602588161, icon='ant-design:delete-outlined', code='systemConfig:delete', url=NULL, "method"=NULL, tenant_id=NULL
WHERE code='systemconfig:delete';
UPDATE xjr_menu_button
SET "name"='查看详情', menu_id=1817773926602588161, icon=NULL, code='systemConfig:detail', url='detail', "method"=0, tenant_id=NULL
WHERE code='systemconfig:detail';
-- 系统配置 登出设置
INSERT INTO xjr_system_config
(id, code, "name", value, remark, create_date, create_user_id, modify_date, modify_user_id, delete_mark, enabled_mark, tenant_id)
VALUES(1887684370031206402, 'logoutUserWhileModifyRolePriv', '修改权限用户登出设置', 'false', '修改权限后用户登出设置,现有配置权限/app权限会有登出得功能该系统配置是为其设置默认值。设置值为 true 或者 false。只有设置了true才会统一执行自动登出。没配置或者配置为其他都不默认登出。', '2025-02-07 10:06:39.968', 1000000000000000000, '2025-02-07 10:34:28.255', 1000000000000000000, 0, 1, NULL);

View File

@ -0,0 +1,5 @@
ALTER TABLE xjr_sync_datacenter_org_user
ADD COLUMN hcm_status varchar(10);
ALTER TABLE xjr_user
ADD COLUMN hcm_status varchar(10) COMMENT 'hcm中的人员状态为1标识是集团内正式员工';

View File

@ -0,0 +1,7 @@
ALTER TABLE xjr_sync_datacenter_org_user
ADD COLUMN "hcm_status" varchar(10);
ALTER TABLE xjr_user
ADD COLUMN "hcm_status" varchar(10);
COMMENT ON COLUMN xjr_user."hcm_status" IS 'hcm中的人员状态为1标识是集团内正式员工';

106629
script/mysql全库20240401.sql Normal file

File diff suppressed because one or more lines are too long

106566
script/mysql全库20250109.sql Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long