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

[账单][修改][修改滞纳金]

release_toaliyun_real
luozukai 6 лет назад
Родитель
Сommit
f5b4e3cc51
2 измененных файлов: 10 добавлений и 8 удалений
  1. +4
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java
  2. +6
    -5
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 4
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxPropertyContractServiceImpl.java Просмотреть файл

@@ -452,8 +452,7 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
//建立账单
if (record.getMerchantId() != null
&& record.getReceivePeriod() != null &&
record.getPrice() > 0 &&
record.getDeposit() > 0) {
record.getPrice() > 0) {
//预览账单改为正式,并写入商户id
updatePropertyPreviewBill(record);
}
@@ -467,7 +466,9 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService
billProperty.setIsPreview(EnumIsPreview.NO.getCode());
billProperty.setMerchantId(record.getMerchantId());
wxBillPropertyMapper.updatePreviewStatus(billProperty);
buildDeposit(record);
if(record.getDeposit() > 0) {
buildDeposit(record);
}
}

@Transactional(rollbackFor = {Exception.class})


+ 6
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java Просмотреть файл

@@ -1461,8 +1461,7 @@ public class WxRentContractServiceImpl implements WxRentContractService {
if (record != null &&
record.getMerchantId() != null &&
record.getReceivePeriod() != null &&
record.getPrice() > 0 &&
record.getDeposit() > 0) {
record.getPrice() > 0 ) {
//预览账单改为正式,并写入商户id
WxBillRent billRent = new WxBillRent();
billRent.setRentContractId(id);
@@ -1472,9 +1471,11 @@ public class WxRentContractServiceImpl implements WxRentContractService {
WxMerchant wxMerchant = new WxMerchant();
wxMerchant.setId(record.getMerchantId());
wxMerchant.setTenantId(record.getTenantId());
//押金
buildDeposit(wxMerchant, null,id);
updatePropertyPreviewBill(record);
if(record.getDeposit() > 0) {
//押金
buildDeposit(wxMerchant, null, id);
updatePropertyPreviewBill(record);
}
//作废合同
updateInvalidContract(id);
}


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