|
|
@ -202,9 +202,6 @@ public class DateCheckApplyServiceImpl implements DateCheckApplyService { |
|
|
|
costApplyLambdaQueryWrapper.in(TbsCostApply::getChargeState,TbsCostApplyState.getPassCode()); |
|
|
|
List<TbsCostApply> costApplyList = costApplyMapper.selectList(costApplyLambdaQueryWrapper); |
|
|
|
|
|
|
|
LambdaQueryWrapper<TbsActivity> actLqw = new LambdaQueryWrapper<>(); |
|
|
|
actLqw.in(TbsActivity::getCostApplyId,costApplyList.stream().map(a->a.getId()).collect(Collectors.toList())); |
|
|
|
|
|
|
|
//申请总金额
|
|
|
|
BigDecimal totalAmount = activityMapper.sumSupplierActivityCost(supplierId); |
|
|
|
if(totalAmount==null){ |
|
|
@ -228,6 +225,8 @@ public class DateCheckApplyServiceImpl implements DateCheckApplyService { |
|
|
|
VtbVerificationState.Finished.getCode(), |
|
|
|
VtbVerificationState.Rollback.getCode(), |
|
|
|
VtbVerificationState.Commiting.getCode()); |
|
|
|
veriLqw.in(VtbVerification::getCostApplyId,costApplyList.stream().map(a->a.getId()).collect(Collectors.toList())); |
|
|
|
|
|
|
|
List<VtbVerification> vtbVerificationList = verificationMapper.selectList(veriLqw); |
|
|
|
List<VtbVerification> finishedVeriList= vtbVerificationList.stream() |
|
|
|
.filter(a->a.getVerificationState().equals(VtbVerificationState.Finished.getCode())).collect(Collectors.toList()); |
|
|
@ -259,10 +258,14 @@ public class DateCheckApplyServiceImpl implements DateCheckApplyService { |
|
|
|
if(checkedAmt.compareTo(BigDecimal.ZERO)>0){ |
|
|
|
|
|
|
|
//已支付
|
|
|
|
PayPaymentItem payItemQuery = new PayPaymentItem(); |
|
|
|
payItemQuery.setCancelFlag(0); |
|
|
|
payItemQuery.setSupplierId(Long.parseLong(supplierId)); |
|
|
|
List<PayPaymentItem> allPayList = payPaymentItemMapper.selectPayPaymentItemList(payItemQuery); |
|
|
|
// PayPaymentItem payItemQuery = new PayPaymentItem();
|
|
|
|
// payItemQuery.setCancelFlag(0);
|
|
|
|
// payItemQuery.setSupplierId(Long.parseLong(supplierId));
|
|
|
|
LambdaQueryWrapper<PayPaymentItem> payLqw = new LambdaQueryWrapper<>(); |
|
|
|
payLqw.in(PayPaymentItem::getCostApplyId,costApplyList.stream().map(a->a.getId()).collect(Collectors.toList())); |
|
|
|
payLqw.eq(PayPaymentItem::getCancelFlag,0); |
|
|
|
|
|
|
|
List<PayPaymentItem> allPayList = payPaymentItemMapper.selectList(payLqw); |
|
|
|
List<PayPaymentItem> payList = allPayList.stream().filter(a->a.getPayType().equals(PaymentType.PAYMENT)).collect(Collectors.toList()); |
|
|
|
List<PayPaymentItem> unPayList = allPayList.stream().filter(a->a.getPayType().equals(PaymentType.UN_PAYMENT)).collect(Collectors.toList()); |
|
|
|
|
|
|
|