add_contract_template_field.sql 1.1 KB

123456789101112
  1. -- 添加合同模版字段
  2. ALTER TABLE crm_contract ADD COLUMN contract_template VARCHAR(50) DEFAULT 'shanxia' COMMENT '合同模版(shanxia-山峡模版/customer-客户模版)' AFTER template_id;
  3. -- 插入字典类型
  4. INSERT INTO sys_dict_type (dict_id, tenant_id, dict_name, dict_type, create_dept, create_by, create_time, update_by, update_time, remark)
  5. VALUES (NEXT VALUE FOR sys_dict_type_seq, '000000', '合同模版', 'crm_contract_template', 103, 1, CURRENT_TIMESTAMP, 1, CURRENT_TIMESTAMP, '合同模版字典');
  6. -- 插入字典数据
  7. INSERT INTO sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark)
  8. VALUES
  9. (NEXT VALUE FOR sys_dict_data_seq, '000000', 1, '山峡模版', 'shanxia', 'crm_contract_template', '', 'primary', 'Y', 103, 1, CURRENT_TIMESTAMP, 1, CURRENT_TIMESTAMP, '使用山峡标准合同模版'),
  10. (NEXT VALUE FOR sys_dict_data_seq, '000000', 2, '客户模版', 'customer', 'crm_contract_template', '', 'info', 'N', 103, 1, CURRENT_TIMESTAMP, 1, CURRENT_TIMESTAMP, '使用客户提供的合同模版');