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.
61 lines
4.5 KiB
Java
61 lines
4.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 '案卷号';
|
|
|
|
-- 新增资产状态字典
|
|
INSERT INTO `lyr-one`.`system_dict_type` (`name`, `type`, `status`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `deleted_time`) VALUES ( '资产状态', 'asset_status', 0, NULL, '', '2023-10-30 14:06:08', '', '2023-10-30 14:06:08', b'0', '1970-01-01 00:00:00');
|
|
INSERT INTO `lyr-one`.`system_dict_data` (`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (0, '正常', '0', 'asset_status', 0, 'default', '', NULL, '', '2023-10-30 14:06:28', '', '2023-10-30 14:06:28', b'0');
|
|
INSERT INTO `lyr-one`.`system_dict_data` (`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (0, '冻结', '1', 'asset_status', 0, 'default', '', NULL, '', '2023-10-30 14:06:34', '', '2023-10-30 14:06:34', b'0');
|