migrate-protocol-void-type.sql 1.1 KB

1234567891011121314151617181920212223242526272829
  1. -- 协议作废类型(采集协议单 / 捐赠协议单)
  2. -- 2026-07-01
  3. ALTER TABLE `biz_collection_protocol`
  4. ADD COLUMN `void_type` varchar(32) DEFAULT NULL COMMENT '协议作废类型(字典 xyzflx)' AFTER `void_desc`;
  5. ALTER TABLE `biz_research_donation`
  6. ADD COLUMN `void_type` varchar(32) DEFAULT NULL COMMENT '作废类型(字典 xyzflx)' AFTER `void_desc`;
  7. INSERT INTO `sys_dict_type` (
  8. `id`, `dict_name`, `dict_type`, `tenant_no`, `order_num`, `remark`,
  9. `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`
  10. ) VALUES (
  11. 'TDP000000000000000000000000000096', '协议作废类型', 'xyzflx', 'zkxw', 0, NULL,
  12. NULL, '', NOW(), NULL, NOW(), 0
  13. );
  14. INSERT INTO `sys_dict_data` (
  15. `id`, `dict_label`, `dict_value`, `dict_type`, `tenant_no`, `order_num`, `remark`,
  16. `create_by`, `create_dept_id`, `create_time`, `update_by`, `update_time`, `del_flag`
  17. ) VALUES
  18. (
  19. 'DDP000000000000000000000000000201', '客户毁存', 'khhc', 'xyzflx', 'zkxw', 1, NULL,
  20. NULL, '', NOW(), NULL, NOW(), 0
  21. ),
  22. (
  23. 'DDP000000000000000000000000000202', '检测不合格', 'jcbhg', 'xyzflx', 'zkxw', 2, NULL,
  24. NULL, '', NOW(), NULL, NOW(), 0
  25. );