Files
yunzhupass-database/MySQL/09_cm_init.sql
朱进 5274b9062a feat(db): 初始化和完善字典类型及单据编码数据
- 新增模块分类(createModule)及接口分类(DataInterfaceType)字典类型及对应数据
- 更新和规范base_bill_rule表中的单据编码,修正字段大小写及部分数据调整
- 新增合同管理相关的单据编码规则
- 删除重复和过时的DataInterfaceType字典类型数据及相关字典数据
- 优化字典类型数据插入顺序,保持数据一致性与完整性
2026-05-19 20:20:23 +08:00

23 lines
4.1 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ----------------------------
-- 单据编码Records of base_bill_rule
-- ----------------------------
INSERT INTO `base_bill_rule` VALUES ('contractCode', '合同编码', 'contractCode', 'HT', 'YYYYMM', 4, '0001', 'HT2026050001', NULL, NULL, NULL, 1, 'businessType-defalut-contractManage', 10, '2026-05-08 17:44:30', 'admin', NULL, NULL, NULL, NULL, NULL, '0', 1, NULL, NULL, NULL);
INSERT INTO `base_bill_rule` VALUES ('contractPaymentApplyCode', '付款申请编码', 'contractPaymentApplyCode', 'FKSQ', 'YYYYMM', 4, '0001', 'PAY2026040001', 7, '', NULL, 1, 'businessType-defalut-contractManage', 0, '2026-04-21 15:20:52', 'admin', '2026-04-23 11:38:54', 'admin', NULL, NULL, NULL, '0', 1, NULL, NULL, NULL);
-- ----------------------------
-- 字典类型合同管理cm和字典数据
-- ----------------------------
INSERT INTO `base_dictionary_type` (`f_id`, `f_parent_id`, `f_full_name`, `f_en_code`, `f_is_tree`, `f_type`, `f_description`, `f_enabled_mark`, `f_sort_code`, `f_creator_time`, `f_creator_user_id`, `f_last_modify_time`, `f_last_modify_user_id`, `f_delete_time`, `f_delete_user_id`, `f_delete_mark`, `f_tenant_id`) VALUES ('cm', '-1', '合同管理', 'cm', 0, 0, NULL, 1, 0, '2026-02-27 11:58:17', 'admin', NULL, NULL, NULL, NULL, NULL, '0');
----------------------------- 二级字典分类 -----------------------------
-- ----------------------------
-- 字典类型合同分类contractCategory和字典数据
-- ----------------------------
INSERT INTO `base_dictionary_type` (`f_id`, `f_parent_id`, `f_full_name`, `f_en_code`, `f_is_tree`, `f_type`, `f_description`, `f_enabled_mark`, `f_sort_code`, `f_creator_time`, `f_creator_user_id`, `f_last_modify_time`, `f_last_modify_user_id`, `f_delete_time`, `f_delete_user_id`, `f_delete_mark`, `f_tenant_id`) VALUES ('contractCategory', 'cm', '合同分类', 'contractCategory', 0, 0, '合同分类', 1, 0, '2026-03-23 15:50:49', 'admin', '2026-04-24 10:01:11', 'admin', NULL, NULL, NULL, '0');
INSERT INTO `base_dictionary_data` (`f_id`, `f_parent_id`, `f_full_name`, `f_en_code`, `f_simple_spelling`, `f_is_default`, `f_description`, `f_enabled_mark`, `f_dictionary_type_id`, `f_sort_code`, `f_creator_time`, `f_creator_user_id`, `f_last_modify_time`, `f_last_modify_user_id`, `f_delete_time`, `f_delete_user_id`, `f_delete_mark`, `f_tenant_id`) VALUES ('contractCategory_RJFW', 'contractCategory', '软件服务合同', '1001', 'RJFW', NULL, NULL, 1, 'contractCategory', 0, '2026-03-23 15:51:15', 'admin', NULL, NULL, NULL, NULL, NULL, '0');
INSERT INTO `base_dictionary_data` (`f_id`, `f_parent_id`, `f_full_name`, `f_en_code`, `f_simple_spelling`, `f_is_default`, `f_description`, `f_enabled_mark`, `f_dictionary_type_id`, `f_sort_code`, `f_creator_time`, `f_creator_user_id`, `f_last_modify_time`, `f_last_modify_user_id`, `f_delete_time`, `f_delete_user_id`, `f_delete_mark`, `f_tenant_id`) VALUES ('contractCategory_JSZC', 'contractCategory', '技术支持合同', '1002', 'JSZC', NULL, NULL, 1, 'contractCategory', 1, '2026-03-23 15:51:32', 'admin', NULL, NULL, NULL, NULL, NULL, '0');
INSERT INTO `base_dictionary_data` (`f_id`, `f_parent_id`, `f_full_name`, `f_en_code`, `f_simple_spelling`, `f_is_default`, `f_description`, `f_enabled_mark`, `f_dictionary_type_id`, `f_sort_code`, `f_creator_time`, `f_creator_user_id`, `f_last_modify_time`, `f_last_modify_user_id`, `f_delete_time`, `f_delete_user_id`, `f_delete_mark`, `f_tenant_id`) VALUES ('contractCategory_YWPX', 'contractCategory', '业务培训合同', '1003', 'YWPX', NULL, NULL, 1, 'contractCategory', 3, '2026-03-23 15:51:48', 'admin', NULL, NULL, NULL, NULL, NULL, '0');
INSERT INTO `base_dictionary_data` (`f_id`, `f_parent_id`, `f_full_name`, `f_en_code`, `f_simple_spelling`, `f_is_default`, `f_description`, `f_enabled_mark`, `f_dictionary_type_id`, `f_sort_code`, `f_creator_time`, `f_creator_user_id`, `f_last_modify_time`, `f_last_modify_user_id`, `f_delete_time`, `f_delete_user_id`, `f_delete_mark`, `f_tenant_id`) VALUES ('contractCategory_JZGC', 'contractCategory', '建筑工程合同', '1005', 'JZGC', NULL, NULL, 1, 'contractCategory', 4, '2026-03-23 15:52:08', 'admin', NULL, NULL, NULL, NULL, NULL, '0');