|
|
@@ -64,8 +64,6 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> |
|
|
|
.ge(req.getCreateOnMin() != null, Purchase::getCreateOn, req.getCreateOnMin()) |
|
|
|
.eq(req.getStatus() != null, Purchase::getXcfhxApplyStatus, req.getStatus()) |
|
|
|
.eq(req.getSourceType() != null,Purchase::getSourceType,req.getSourceType()) |
|
|
|
.ge(Objects.nonNull(req.getAmountStart()),Purchase::getTransactionAmount,req.getAmountStart()) |
|
|
|
.le(Objects.nonNull(req.getAmountEnd()),Purchase::getTransactionAmount,req.getAmountEnd()) |
|
|
|
.orderByDesc(Purchase::getCreateOn); |
|
|
|
|
|
|
|
if (Boolean.TRUE.equals(req.getFinished())) { |
|
|
@@ -114,6 +112,10 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> |
|
|
|
return null; |
|
|
|
} |
|
|
|
item.setContractAmount(contract.getTotalAmount()); |
|
|
|
}else{ |
|
|
|
if(Objects.nonNull(req.getAmountStart()) || Objects.nonNull(req.getAmountEnd())){ |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
return item; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|