| @@ -169,10 +169,9 @@ public class WxBillAllServiceImpl implements WxBillAllService { | |||||
| Long realReceivePay = servicePay.longValue() + e.getLatePayPrice() + e.getReceivePay(); | Long realReceivePay = servicePay.longValue() + e.getLatePayPrice() + e.getReceivePay(); | ||||
| e.setRealReceivePay(realReceivePay); | e.setRealReceivePay(realReceivePay); | ||||
| e.setServiceChargePay(servicePay.intValue()); | e.setServiceChargePay(servicePay.intValue()); | ||||
| if (e.getStatus().equals(EnumBillRentStatus.PAID.getCode())) { | |||||
| e.setRealReceivePay(e.getPay()); | |||||
| if (!e.getStatus().equals(EnumBillRentStatus.NOT_PAID.getCode())) { | |||||
| e.setOwe(0L); | |||||
| } | } | ||||
| e.setOwe(realReceivePay - e.getPay()); | |||||
| } | } | ||||
| } | } | ||||
| @@ -83,6 +83,9 @@ public class WxBillDailyServiceImpl implements WxBillDailyService { | |||||
| Long realReceivePay = servicePay.longValue() + e.getReceivePay(); | Long realReceivePay = servicePay.longValue() + e.getReceivePay(); | ||||
| e.setRealReceivePay(realReceivePay); | e.setRealReceivePay(realReceivePay); | ||||
| e.setServiceChargePay(servicePay.intValue()); | e.setServiceChargePay(servicePay.intValue()); | ||||
| if (!e.getStatus().equals(EnumBillRentStatus.NOT_PAID.getCode())) { | |||||
| e.setOwe(0L); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -78,6 +78,9 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService | |||||
| Long realReceivePay = servicePay.longValue() + e.getReceivePay(); | Long realReceivePay = servicePay.longValue() + e.getReceivePay(); | ||||
| e.setRealReceivePay(realReceivePay); | e.setRealReceivePay(realReceivePay); | ||||
| e.setServiceChargePay(servicePay.intValue()); | e.setServiceChargePay(servicePay.intValue()); | ||||
| if (!e.getStatus().equals(EnumBillRentStatus.NOT_PAID.getCode())) { | |||||
| e.setOwe(0L); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -78,6 +78,9 @@ public class WxBillOtherServiceImpl implements WxBillOtherService { | |||||
| Long realReceivePay = servicePay.longValue() + e.getReceivePay(); | Long realReceivePay = servicePay.longValue() + e.getReceivePay(); | ||||
| e.setRealReceivePay(realReceivePay); | e.setRealReceivePay(realReceivePay); | ||||
| e.setServiceChargePay(servicePay.intValue()); | e.setServiceChargePay(servicePay.intValue()); | ||||
| if (!e.getStatus().equals(EnumBillRentStatus.NOT_PAID.getCode())) { | |||||
| e.setOwe(0L); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -85,6 +85,9 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { | |||||
| Long realReceivePay = servicePay.longValue() + e.getLatePayPrice() + e.getReceivePay(); | Long realReceivePay = servicePay.longValue() + e.getLatePayPrice() + e.getReceivePay(); | ||||
| e.setRealReceivePay(realReceivePay); | e.setRealReceivePay(realReceivePay); | ||||
| e.setServiceChargePay(servicePay.intValue()); | e.setServiceChargePay(servicePay.intValue()); | ||||
| if (!e.getStatus().equals(EnumBillRentStatus.NOT_PAID.getCode())) { | |||||
| e.setOwe(0L); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| @@ -87,6 +87,9 @@ public class WxBillRentServiceImpl implements WxBillRentService { | |||||
| Long realReceivePay = servicePay.longValue() + rent.getLatePayPrice() + rent.getReceivePay(); | Long realReceivePay = servicePay.longValue() + rent.getLatePayPrice() + rent.getReceivePay(); | ||||
| rent.setRealReceivePay(realReceivePay); | rent.setRealReceivePay(realReceivePay); | ||||
| rent.setServiceChargePay(servicePay.intValue()); | rent.setServiceChargePay(servicePay.intValue()); | ||||
| if (!rent.getStatus().equals(EnumBillRentStatus.NOT_PAID.getCode())) { | |||||
| rent.setOwe(0L); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||