From a81fc1f4bc1cd9779622863952330cea7b155ecb Mon Sep 17 00:00:00 2001 From: gongbiao Date: Mon, 18 Feb 2019 14:50:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A7=9F=E8=B5=81=E5=90=88=E5=90=8C=E5=8F=8A?= =?UTF-8?q?=E7=89=A9=E4=B8=9A=E5=90=88=E5=90=8C][=E6=B7=BB=E5=8A=A0][?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=A7=9F=E8=B5=81=E8=B4=A6=E5=8D=95=E6=97=B6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8F=98=E6=9B=B4]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxPropertyContractServiceImpl.java | 3 ++- .../com/iformall/service/impl/WxRentContractServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java index 549623bac..5d34f2632 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java @@ -343,7 +343,6 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService WxBillProperty wxBillProperty = new WxBillProperty(); wxBillProperty.setId(idWorker.nextId()); wxBillProperty.setPropertyContractId(wxPropertyContract.getId()); - wxBillProperty.setReceivePay(0); wxBillProperty.setPay(0); Date date = new Date(); @@ -382,6 +381,8 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService } wxBillProperty.setNeedPay(needpay); wxBillProperty.setOwe(needpay); + wxBillProperty.setReceivePay(needpay); + //截止收租日在当前时间之前 if (wxBillProperty.getReceiveDate().before(date)) { long day = (time.getTime() - date.getTime()) / (24 * 60 * 60 * 1000); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java index c9ad964f0..517c742a5 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java @@ -438,7 +438,6 @@ public class WxRentContractServiceImpl implements WxRentContractService { WxBillRent wxBillRent = new WxBillRent(); wxBillRent.setId(idWorker.nextId()); wxBillRent.setRentContractId(wxRentContract.getId()); - wxBillRent.setReceivePay(0); wxBillRent.setPay(0); int needpay = price * receivePeriod; @@ -478,6 +477,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { } wxBillRent.setNeedPay(needpay); wxBillRent.setOwe(needpay); + wxBillRent.setReceivePay(needpay); //截止收租日在当前时间之前 if (wxBillRent.getReceiveDate().before(date)) {