diff --git a/db/22年7月变更.sql b/db/22年7月变更.sql index d19d8f89..f2f98a2d 100644 --- a/db/22年7月变更.sql +++ b/db/22年7月变更.sql @@ -124,3 +124,18 @@ where certificate_payment_amount is null; update tb_member_project_subitem set member_payment_amount = amount_receivable where member_payment_amount is null; + +-- 整合来款用途 +ALTER TABLE `tb_certificate_payment` + MODIFY COLUMN `charge_use` tinyint(1) NULL DEFAULT 21 COMMENT '来款用途(字典表)'; +update tb_certificate_payment set charge_use = 21; +ALTER TABLE `tb_member_project_subitem` + MODIFY COLUMN `charge_use` tinyint(1) NULL DEFAULT 21 COMMENT '来款用途(字典表)'; +update tb_member_project_subitem set charge_use = 21; +ALTER TABLE `pay_member_project_subitem` + MODIFY COLUMN `charge_use` tinyint(1) NULL DEFAULT 21 COMMENT '来款用途(字典表)'; +update pay_member_project_subitem set charge_use = 21; + +update pay_common_project set charge_use = 21 where charge_use in (20,3,2,9); + +delete from sys_dict_item where dict_id = '1431145150766923778' and item_value in (2,3,9,20); \ No newline at end of file