万材erp项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

55 lines
12 KiB

-- 20231112 新增物料信息表
CREATE TABLE `erp_material` (
`id` BIGINT ( 20 ) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`del_flag` CHAR ( 1 ) DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`create_by` VARCHAR ( 64 ) DEFAULT '' COMMENT '创建者',
`create_time` DATETIME DEFAULT NULL COMMENT '创建时间',
`update_by` VARCHAR ( 64 ) DEFAULT '' COMMENT '更新者',
`update_time` DATETIME DEFAULT NULL COMMENT '更新时间',
`remark` VARCHAR ( 500 ) DEFAULT NULL COMMENT '备注',
`material_no` VARCHAR ( 50 ) DEFAULT NULL COMMENT '料号',
`material_name` VARCHAR ( 255 ) DEFAULT NULL COMMENT '物料名称',
`audit_status` VARCHAR ( 50 ) DEFAULT NULL COMMENT '审核状态',
`use_status` VARCHAR ( 50 ) DEFAULT NULL COMMENT '使用状态',
`hava_product_tem` VARCHAR ( 50 ) DEFAULT NULL COMMENT '是否有生产团队',
`material_type` VARCHAR ( 50 ) DEFAULT NULL COMMENT '物料类型',
`process_method` VARCHAR ( 50 ) DEFAULT NULL COMMENT '加工方式',
`unit` VARCHAR ( 50 ) DEFAULT NULL COMMENT '单位',
`brand` VARCHAR ( 255 ) DEFAULT NULL COMMENT '品牌',
`describe` VARCHAR ( 500 ) DEFAULT NULL COMMENT '描述',
`warehouse_dept` VARCHAR ( 50 ) DEFAULT NULL COMMENT '入库部门',
PRIMARY KEY ( `id` ) USING BTREE
) ENGINE = INNODB AUTO_INCREMENT = 32 DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMMENT = '物料表';
-- 20231112 更新数据字典
UPDATE `wancaierpdemo`.`sys_dict_type` SET `dict_name` = '单位', `dict_type` = 'sys_unit_class', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:01:22', `update_by` = 'admin', `update_time` = '2023-11-12 08:54:14', `remark` = 'erp_material' WHERE `dict_id` = 18;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 1, `dict_label` = 'pcs', `dict_value` = 'pcs', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:01:58', `update_by` = 'admin', `update_time` = '2021-10-21 10:14:48', `remark` = '' WHERE `dict_code` = 52;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 6, `dict_label` = '', `dict_value` = '', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:02:12', `update_by` = 'admin', `update_time` = '2023-11-12 08:45:00', `remark` = '' WHERE `dict_code` = 53;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 14, `dict_label` = '', `dict_value` = '', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:02:23', `update_by` = 'admin', `update_time` = '2023-11-12 08:45:36', `remark` = '' WHERE `dict_code` = 54;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 7, `dict_label` = '', `dict_value` = '', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:02:36', `update_by` = 'admin', `update_time` = '2023-11-12 08:45:08', `remark` = '' WHERE `dict_code` = 55;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 8, `dict_label` = '', `dict_value` = '', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:02:52', `update_by` = 'admin', `update_time` = '2023-11-12 08:45:16', `remark` = '' WHERE `dict_code` = 56;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 4, `dict_label` = 'M', `dict_value` = 'M', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:02', `update_by` = 'admin', `update_time` = '2023-11-12 08:44:11', `remark` = '' WHERE `dict_code` = 57;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 2, `dict_label` = 'kg', `dict_value` = 'kg', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:13', `update_by` = 'admin', `update_time` = '2023-11-12 08:43:53', `remark` = '' WHERE `dict_code` = 58;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 3, `dict_label` = 'g', `dict_value` = 'g', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:23', `update_by` = 'admin', `update_time` = '2023-11-12 08:43:59', `remark` = '' WHERE `dict_code` = 59;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 9, `dict_label` = 'KPCS', `dict_value` = 'KPCS', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:39', `update_by` = 'admin', `update_time` = '2021-10-21 10:15:58', `remark` = '' WHERE `dict_code` = 60;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 10, `dict_label` = '', `dict_value` = '', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:03:57', `update_by` = 'admin', `update_time` = '2021-10-21 10:16:07', `remark` = '' WHERE `dict_code` = 61;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 11, `dict_label` = '', `dict_value` = '', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:04:09', `update_by` = 'admin', `update_time` = '2021-10-21 10:21:43', `remark` = '' WHERE `dict_code` = 62;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 12, `dict_label` = '', `dict_value` = '', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2021-10-14 14:04:25', `update_by` = 'admin', `update_time` = '2021-10-21 10:21:49', `remark` = '' WHERE `dict_code` = 63;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 13, `dict_label` = '', `dict_value` = '', `dict_type` = 'sys_unit_class', `css_class` = '', `list_class` = '', `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2022-11-17 11:56:38', `update_by` = 'admin', `update_time` = '2022-11-17 11:56:53', `remark` = '' WHERE `dict_code` = 188;
UPDATE `wancaierpdemo`.`sys_dict_data` SET `dict_sort` = 5, `dict_label` = 'ML', `dict_value` = '5', `dict_type` = 'sys_unit_class', `css_class` = NULL, `list_class` = NULL, `is_default` = 'Y', `status` = '0', `create_by` = 'admin', `create_time` = '2023-11-12 08:44:26', `update_by` = '', `update_time` = NULL, `remark` = NULL WHERE `dict_code` = 280;
INSERT INTO `wancaierpdemo`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (77, '审核状态', 'auditStatus', '0', 'admin', '2023-11-12 05:28:46', 'admin', '2023-11-12 06:51:07', 'erp_material');
INSERT INTO `wancaierpdemo`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (79, '加工方式', 'processMethod', '0', 'admin', '2023-11-12 06:47:38', 'admin', '2023-11-12 06:51:17', 'erp_material');
INSERT INTO `wancaierpdemo`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (78, '使用状态', 'useStatus', '0', 'admin', '2023-11-12 06:44:29', '', NULL, 'erp_material');
INSERT INTO `wancaierpdemo`.`sys_dict_type` (`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (80, '入库部门', 'warehouseDept', '0', 'admin', '2023-11-12 06:50:40', '', NULL, 'erp_material');
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (269, 0, '待审核', '0', 'auditStatus', NULL, 'default', 'Y', '0', 'admin', '2023-11-12 05:29:41', '', NULL, NULL);
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (270, 1, '审核通过', '1', 'auditStatus', '', '', 'Y', '0', 'admin', '2023-11-12 05:29:58', 'admin', '2023-11-12 05:30:08', '');
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (271, 2, '审核拒绝', '2', 'auditStatus', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 05:30:23', '', NULL, NULL);
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (272, 0, '', '0', 'useStatus', '', '', 'Y', '0', 'admin', '2023-11-12 06:45:09', 'admin', '2023-11-12 06:45:36', '');
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (273, 1, '', '1', 'useStatus', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 06:45:24', '', NULL, NULL);
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (274, 2, '已作废', '2', 'useStatus', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 06:46:04', '', NULL, NULL);
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (275, 0, '采购', '0', 'processMethod', '', '', 'Y', '0', 'admin', '2023-11-12 06:48:47', 'admin', '2023-11-12 06:49:52', '');
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (276, 1, '委内加工', '1', 'processMethod', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 06:49:03', '', NULL, NULL);
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (277, 2, '委外加工', '2', 'processMethod', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 06:49:29', '', NULL, NULL);
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (278, 0, '仓库部门', '0', 'warehouseDept', '', '', 'Y', '0', 'admin', '2023-11-12 08:42:01', 'admin', '2023-11-12 08:43:00', '');
INSERT INTO `wancaierpdemo`.`sys_dict_data` (`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (279, 1, '采购部门', '1', 'warehouseDept', NULL, NULL, 'Y', '0', 'admin', '2023-11-12 08:42:12', '', NULL, NULL);