|
|
|
@@ -320,7 +320,23 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService |
|
|
|
|
|
|
|
@Override |
|
|
|
public void exportBill(HttpServletRequest request, HttpServletResponse response, WxBillOtherDeposit wxBillDeposit) { |
|
|
|
WxPayAccountBill wxPayAccountBill = wxPayAccountBillService.getByTenantId(wxBillDeposit.getTenantId()); |
|
|
|
List<WxBillOtherDeposit> datalist = wxBillOtherDepositMapper.queryBillList(wxBillDeposit); |
|
|
|
datalist.stream().forEach(e->{ |
|
|
|
//手续费 = 合同应收+手续费+滞纳金 |
|
|
|
if(e.getReceivePay() != null){ |
|
|
|
if(e.getLatePayPrice() == null) e.setLatePayPrice(0l); |
|
|
|
BigDecimal servicePay; |
|
|
|
if(e.getServiceChargePay() != null){ |
|
|
|
servicePay = new BigDecimal(e.getServiceChargePay()); |
|
|
|
}else{ |
|
|
|
servicePay = new BigDecimal(e.getReceivePay()).multiply(new BigDecimal(wxPayAccountBill.getServiceChargeRate())).divide(new BigDecimal(10000), 2, BigDecimal.ROUND_HALF_UP); |
|
|
|
} |
|
|
|
Long realReceivePay = servicePay.longValue() + e.getLatePayPrice() + e.getReceivePay(); |
|
|
|
e.setRealReceivePay(realReceivePay); |
|
|
|
e.setServiceChargePay(servicePay.intValue()); |
|
|
|
} |
|
|
|
}); |
|
|
|
excelService.exportExcel(datalist, null, "其他押金账单", WxBillOtherDeposit.class, "其他押金账单.xlsx", response, false); |
|
|
|
} |
|
|
|
|
|
|
|
|