From 21e6334a84ce98cf3aa86d1c79581c00bac97c8e Mon Sep 17 00:00:00 2001 From: luozukai Date: Fri, 2 Aug 2019 18:47:26 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=BB=9E=E7=BA=B3=E9=87=91][=E4=BF=AE?= =?UTF-8?q?=E6=94=B9][=E4=BF=9D=E5=AD=98billAction]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WxBillPropertyMapper.xml | 4 ++-- mallinkService/src/main/resources/mapper/WxBillRentMapper.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml b/mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml index c536190ea..c38034b86 100644 --- a/mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml @@ -227,7 +227,7 @@ - insert into wx_bill_action(id,user_name,`action`,bill_id,details) + insert into wx_bill_action(id,user_name,`action`,bill_id,details,tenant_id) select (select unix_timestamp(now()) + CEILING(RAND()*90000+10000)) id ,'系统端' user_name,7 `action`,b.id bill_id, @@ -241,7 +241,7 @@ b.owe * (c.late_pay_ratio) /10000 ,2) ) - ,'元') details + ,'元') details,b.tenant_id from wx_bill_property b left join wx_property_contract c on(b.`property_contract_id`=c.id) where c.late_pay_ratio >0 and DATEDIFF(now(), date_add(b.receive_date,interval(c.late_pay_day) day)) >0 diff --git a/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml b/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml index 8d20ec925..39a6e6190 100644 --- a/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBillRentMapper.xml @@ -229,7 +229,7 @@ - insert into wx_bill_action(id,user_name,`action`,bill_id,details) + insert into wx_bill_action(id,user_name,`action`,bill_id,details,tenant_id) select (select unix_timestamp(now()) + CEILING(RAND()*90000+10000)) id ,'系统端' user_name,7 `action`,b.id bill_id, @@ -243,7 +243,7 @@ b.owe * (c.late_pay_ratio) /10000 ,2) ) - ,'元') details + ,'元') details,b.tenant_id from wx_bill_rent b left join wx_rent_contract c on(b.rent_contract_id=c.id) where c.late_pay_ratio >0 and DATEDIFF(now(), date_add(b.receive_date,interval(c.late_pay_day) day)) >0