From e76eff938b51ef17105b1d641383d082a5ed472a Mon Sep 17 00:00:00 2001 From: lijiarao Date: Thu, 18 Jul 2024 16:01:47 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A4=84=E7=90=86=E6=89=93=E5=8C=85?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AEsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/统计视图.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/统计视图.sql b/db/统计视图.sql index 4c0dcd3b..0e5fd7c5 100644 --- a/db/统计视图.sql +++ b/db/统计视图.sql @@ -328,6 +328,12 @@ update pay_confirm_payment_record set no_tax_amount = amount_received / 1.06, tax = amount_received - no_tax_amount where amount_received is not null; +-- 2024-7-18 16:01:31 处理打包管理历史数据 +update pay_pack_company +set receivable_amount = pack_charge_total, + no_tax_amount = receivable_amount / 1.06, + tax = receivable_amount - no_tax_amount +where pack_year != 2024; -- 六个项目处理历史数据 update pay_common_project set confirm_no_tax_amount = confirm_amount / 1.06,