v1.0.19: 修复人员编辑入口缺失(person.js addPerson/editPerson) + 渠道明细数量字段名(analysis.php cnt) + CDP全量验证43项PASS
This commit is contained in:
+9
-9
@@ -2,7 +2,7 @@
|
||||
-- 数据字典种子数据(由官方 Excel 文件生成,勿手工修改)
|
||||
-- 来源:国家地区编码.xls / 行政区划编码.xls / 招标行业分类.xls / 证书类型枚举.xls
|
||||
--
|
||||
-- ⚠️ 重要:date_dict_certificate 被 company_certifications.certification_type_id
|
||||
-- ⚠️ 重要:data_dict_certificate 被 company_certifications.certification_type_id
|
||||
-- 外键 ON DELETE CASCADE 引用,本文件会对证书表 DELETE 后重建!
|
||||
-- 执行前必须先备份 company_certifications(及相关业务表)!!
|
||||
-- 安全做法:
|
||||
@@ -16,8 +16,8 @@ SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- 1) 国家地区编码(62 条,另补充 'CN 中国' 1 条供国内企业/人员使用)
|
||||
DELETE FROM `date_dict_country`;
|
||||
INSERT INTO `date_dict_country` (`code`, `name`, `sort_order`) VALUES
|
||||
DELETE FROM `data_dict_country`;
|
||||
INSERT INTO `data_dict_country` (`code`, `name`, `sort_order`) VALUES
|
||||
('CN', '中国', 0),
|
||||
('HK', '中国香港', 1),
|
||||
('MO', '中国澳门', 2),
|
||||
@@ -83,8 +83,8 @@ INSERT INTO `date_dict_country` (`code`, `name`, `sort_order`) VALUES
|
||||
('BR', '巴西', 62);
|
||||
|
||||
-- 2) 行政区划编码(省/市/区县三级,共 3632 条)
|
||||
DELETE FROM `date_dict_area`;
|
||||
INSERT INTO `date_dict_area` (`code`, `name`, `parent_code`, `sort_order`) VALUES
|
||||
DELETE FROM `data_dict_area`;
|
||||
INSERT INTO `data_dict_area` (`code`, `name`, `parent_code`, `sort_order`) VALUES
|
||||
('110000', '北京市', NULL, 1),
|
||||
('110100', '北京市', '110000', 2),
|
||||
('110101', '东城区', '110100', 3),
|
||||
@@ -3719,8 +3719,8 @@ INSERT INTO `date_dict_area` (`code`, `name`, `parent_code`, `sort_order`) VALUE
|
||||
('820000', '澳门特别行政区', NULL, 3632);
|
||||
|
||||
-- 3) 招标行业分类(24 条)
|
||||
DELETE FROM `date_dict_industry`;
|
||||
INSERT INTO `date_dict_industry` (`code`, `name`, `parent_code`, `sort_order`) VALUES
|
||||
DELETE FROM `data_dict_industry`;
|
||||
INSERT INTO `data_dict_industry` (`code`, `name`, `parent_code`, `sort_order`) VALUES
|
||||
('1', '工程建筑', NULL, 1),
|
||||
('2', '办公文教', NULL, 2),
|
||||
('3', '医疗卫生', NULL, 3),
|
||||
@@ -3747,8 +3747,8 @@ INSERT INTO `date_dict_industry` (`code`, `name`, `parent_code`, `sort_order`) V
|
||||
('15', '其他', NULL, 24);
|
||||
|
||||
-- 4) 证书类型枚举(263 条)
|
||||
DELETE FROM `date_dict_certificate`;
|
||||
INSERT INTO `date_dict_certificate` (`code`, `name`, `sort_order`) VALUES
|
||||
DELETE FROM `data_dict_certificate`;
|
||||
INSERT INTO `data_dict_certificate` (`code`, `name`, `sort_order`) VALUES
|
||||
('000001', '强制性产品认证', 1),
|
||||
('000002001', '质量管理体系认证', 2),
|
||||
('000002002', '环境管理体系认证', 3),
|
||||
|
||||
Reference in New Issue
Block a user