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)) {