Commit ff705e07 authored by EDY's avatar EDY

优化

parent 36e343d0
...@@ -176,7 +176,9 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService { ...@@ -176,7 +176,9 @@ public class BaseContractInfoServiceImpl implements IBaseContractInfoService {
if (contractCollectVo != null && contractCollectVo.getContractAmount() != null && contractCollectVo.getToTheAmount() != null) { if (contractCollectVo != null && contractCollectVo.getContractAmount() != null && contractCollectVo.getToTheAmount() != null) {
contractCollectVo.setPayeeAmount(contractCollectVo.getContractAmount().subtract(contractCollectVo.getToTheAmount())); contractCollectVo.setPayeeAmount(contractCollectVo.getContractAmount().subtract(contractCollectVo.getToTheAmount()));
BigDecimal invoiceAmount = baseInvoiceInfoMapper.queryInvoiceAmount(contractId); BigDecimal invoiceAmount = baseInvoiceInfoMapper.queryInvoiceAmount(contractId);
contractCollectVo.setMakeInvoiceAmount(invoiceAmount); if (ObjectUtil.isNotNull(invoiceAmount)) {
contractCollectVo.setMakeInvoiceAmount(invoiceAmount);
}
} else { } else {
contractCollectVo = new ContractCollectVo(); contractCollectVo = new ContractCollectVo();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment