Procházet zdrojové kódy

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

release_toaliyun_real
luozukai před 7 roky
rodič
revize
f5b4e3cc51
2 změnil soubory, kde provedl 10 přidání a 8 odebrání
  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 Zobrazit soubor

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


@Transactional(rollbackFor = {Exception.class}) @Transactional(rollbackFor = {Exception.class})


+ 6
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java Zobrazit soubor

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


Načítá se…
Zrušit
Uložit