Browse Source

[账单][修改][导入数据时计算逾期天数]

release_toaliyun_real
gongbiao 6 years ago
parent
commit
73d22b4dbd
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java

+ 5
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxBillAllServiceImpl.java View File

@@ -981,6 +981,7 @@ public class WxBillAllServiceImpl implements WxBillAllService {
rent.setStatus(EnumBillRentStatus.PAID.getCode());
Date payDate = rent.getPayDate();
Date receiveDate = rent.getReceiveDate();
rent.setExpiredDay(0L);
if (payDate.after(receiveDate)) {
int expiredDay = DateUtils.daysBetween(receiveDate, payDate);
rent.setExpiredDay((long) expiredDay);
@@ -1012,6 +1013,7 @@ public class WxBillAllServiceImpl implements WxBillAllService {
property.setStatus(EnumBillRentStatus.PAID.getCode());
Date payDate = property.getPayDate();
Date receiveDate = property.getReceiveDate();
property.setExpiredDay(0L);
if (payDate.after(receiveDate)) {
int expiredDay = DateUtils.daysBetween(receiveDate, payDate);
property.setExpiredDay((long) expiredDay);
@@ -1048,6 +1050,7 @@ public class WxBillAllServiceImpl implements WxBillAllService {
daily.setStatus(EnumBillRentStatus.PAID.getCode());
Date payDate = daily.getPayDate();
Date receiveDate = daily.getReceiveDate();
daily.setExpiredDay(0L);
if (payDate.after(receiveDate)) {
int expiredDay = DateUtils.daysBetween(receiveDate, payDate);
daily.setExpiredDay((long) expiredDay);
@@ -1113,6 +1116,7 @@ public class WxBillAllServiceImpl implements WxBillAllService {
other.setStatus(EnumBillRentStatus.PAID.getCode());
Date payDate = other.getPayDate();
Date receiveDate = other.getReceiveDate();
other.setExpiredDay(0L);
if (payDate.after(receiveDate)) {
int expiredDay = DateUtils.daysBetween(receiveDate, payDate);
other.setExpiredDay((long) expiredDay);
@@ -1181,6 +1185,7 @@ public class WxBillAllServiceImpl implements WxBillAllService {
otherDeposit.setStatus(EnumBillRentStatus.PAID.getCode());
Date payDate = otherDeposit.getPayDate();
Date receiveDate = otherDeposit.getReceiveDate();
otherDeposit.setExpiredDay(0L);
if (payDate.after(receiveDate)) {
int expiredDay = DateUtils.daysBetween(receiveDate, payDate);
otherDeposit.setExpiredDay((long) expiredDay);


Loading…
Cancel
Save