From 33a50f8175742edbd619af04f63d0a7e56110400 Mon Sep 17 00:00:00 2001 From: lijiarao Date: Wed, 31 Aug 2022 16:34:31 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=95=B4=E5=90=88=E6=9D=A5=E6=AC=BE?= =?UTF-8?q?=E7=94=A8=E9=80=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/22年7月变更.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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