From f24e05221a50dc1cc0576bebac3cc4f8dc81a3ad Mon Sep 17 00:00:00 2001 From: xhxu Date: Tue, 23 Mar 2021 11:01:05 +0800 Subject: [PATCH] rent --- .../resources/db/migration/V202103190001__wx_bill_rent.sql | 6 ++++++ .../src/main/resources/mapper/WxBillRentMapper.xml | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mallinkAdmin/src/main/resources/db/migration/V202103190001__wx_bill_rent.sql b/mallinkAdmin/src/main/resources/db/migration/V202103190001__wx_bill_rent.sql index 5e73547f8..92d6c03b4 100644 --- a/mallinkAdmin/src/main/resources/db/migration/V202103190001__wx_bill_rent.sql +++ b/mallinkAdmin/src/main/resources/db/migration/V202103190001__wx_bill_rent.sql @@ -5,6 +5,12 @@ ADD COLUMN `contract_need_pay` bigint(12) COMMENT '原合同应收金额' AFTER ADD COLUMN `rent_price_info` json COMMENT '合同应收明细' AFTER `contract_need_pay`; +update wx_bill_rent set + contract_need_pay = need_pay, + rent_price_info = concat('{"rentPrice": "',need_pay,'", "siteMoney": "0", "facilityMoney": "0", "administratorMoney": "0"}'), +where contract_need_pay is null; + + diff --git a/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml b/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml index 1d28579a8..799e35ef6 100644 --- a/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml @@ -109,13 +109,12 @@