You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
3.5 KiB
Java
56 lines
3.5 KiB
Java
-- 合同档案表 修改借阅状态默认值和归档状态默认值
|
|
alter table ea_electronic_contracts alter column borrow_status set default 2;
|
|
alter table ea_electronic_contracts alter column file_status set default 0;
|
|
|
|
-- 员工档案表 修改借阅状态默认值和归档状态默认值
|
|
alter table ea_electronic_employee alter column borrow_status set default 2;
|
|
alter table ea_electronic_employee alter column file_status set default 0;
|
|
|
|
-- 资产档案表 修改借阅状态默认值和归档状态默认值
|
|
alter table ea_electronic_assets alter column borrow_status set default 2;
|
|
alter table ea_electronic_assets alter column file_status set default 0;
|
|
|
|
|
|
-- 咨询档案表 修改借阅状态默认值和归档状态默认值
|
|
alter table electronic_consultation alter column borrow_status set default 2;
|
|
alter table electronic_consultation alter column file_status set default 0;
|
|
|
|
-- 客诉档案表 修改借阅状态默认值和归档状态默认值
|
|
alter table electronic_customer_complaint alter column borrow_status set default 2;
|
|
alter table electronic_customer_complaint alter column file_status set default 0;
|
|
|
|
-- 修改归档表file_type字段大小
|
|
ALTER TABLE archives_record MODIFY COLUMN file_type VARCHAR(64) COMMENT '归档类型';
|
|
|
|
|
|
-- 资产档案表 立档单位ID 库房ID 案柜ID
|
|
ALTER TABLE ea_electronic_assets ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT '立档单位ID';
|
|
ALTER TABLE ea_electronic_assets ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT '库房ID';
|
|
ALTER TABLE ea_electronic_assets ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT '档案柜ID';
|
|
|
|
-- 合同档案表 立档单位ID 库房ID 案柜ID
|
|
ALTER TABLE ea_electronic_contracts ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT '立档单位ID';
|
|
ALTER TABLE ea_electronic_contracts ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT '库房ID';
|
|
ALTER TABLE ea_electronic_contracts ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT '档案柜ID';
|
|
|
|
-- 员工档案表 立档单位ID 库房ID 案柜ID
|
|
ALTER TABLE ea_electronic_employee ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT '立档单位ID';
|
|
ALTER TABLE ea_electronic_employee ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT '库房ID';
|
|
ALTER TABLE ea_electronic_employee ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT '档案柜ID';
|
|
|
|
-- 咨询档案表 立档单位ID 库房ID 案柜ID
|
|
ALTER TABLE electronic_consultation ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT '立档单位ID';
|
|
ALTER TABLE electronic_consultation ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT '库房ID';
|
|
ALTER TABLE electronic_consultation ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT '档案柜ID';
|
|
|
|
|
|
-- 客诉档案表 立档单位ID 库房ID 案柜ID
|
|
ALTER TABLE electronic_customer_complaint ADD COLUMN `organization_id` bigint(20) NULL DEFAULT NULL COMMENT '立档单位ID';
|
|
ALTER TABLE electronic_customer_complaint ADD COLUMN `depot_id` bigint(20) NULL DEFAULT NULL COMMENT '库房ID';
|
|
ALTER TABLE electronic_customer_complaint ADD COLUMN `cabinet_id` bigint(20) NULL DEFAULT NULL COMMENT '档案柜ID';
|
|
|
|
-- 档案借阅申请表新增 档案类型 档案位置 案卷号
|
|
ALTER TABLE archives_borrow_apply ADD COLUMN `file_type` varchar(64) NULL DEFAULT NULL COMMENT '档案类型';
|
|
ALTER TABLE archives_borrow_apply ADD COLUMN `site` varchar(64) NULL DEFAULT NULL COMMENT '档案位置';
|
|
ALTER TABLE archives_borrow_apply ADD COLUMN `files_num` varchar(64) NULL DEFAULT NULL COMMENT '案卷号';
|