优化智能勾选

release
yishiqihuasheng 2 years ago
parent 5a19dd1a57
commit 24564714cb
  1. 3
      dxhy-base/src/main/java/com/dxhy/base/service/invoicecheck/BaseInvoiceManualCheckServiceImpl.java

@ -540,7 +540,8 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx
currentTax = currentTax.subtract(pageList.get(i).getTaxAmount()); currentTax = currentTax.subtract(pageList.get(i).getTaxAmount());
hjje = hjje.subtract(pageList.get(i).getInvoiceAmount()); hjje = hjje.subtract(pageList.get(i).getInvoiceAmount());
List<BaseTDxRecordInvoice> collect = pageList.stream().skip(i + 1).filter(e->e.getTaxAmount().compareTo(new BigDecimal("0"))<1).sorted(Comparator.comparing(BaseTDxRecordInvoice::getTaxAmount)).collect(Collectors.toList()); List<BaseTDxRecordInvoice> collect = pageList.stream().skip(i + 1).filter(e->e.getTaxAmount().compareTo(new BigDecimal("0"))>1).sorted(Comparator.comparing(BaseTDxRecordInvoice::getTaxAmount)).collect(Collectors.toList());
log.info("collect====>{}",collect);
if (collect != null && collect.size() > 0){ if (collect != null && collect.size() > 0){
log.info("从小到大排序在进行添加"); log.info("从小到大排序在进行添加");
for (int j = 0; j < collect.size(); j++) { for (int j = 0; j < collect.size(); j++) {

Loading…
Cancel
Save