Просмотр исходного кода

[租赁合同及物业合同][添加][生成租赁账单时数据变更]

release_toaliyun_real
gongbiao 7 лет назад
committed by Stormeye Wu
Родитель
Сommit
a81fc1f4bc
2 измененных файлов: 3 добавлений и 2 удалений
  1. +2
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 2
- 1
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);


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


Загрузка…
Отмена
Сохранить