Ver código fonte

修改出账去掉身份照片和合同没有的数据(钱计算还用原来的)

LiFei 5 anos atrás
pai
commit
2c50fb4538

+ 3 - 0
happy-boot-module-powerjob/src/main/java/org/jeecg/modules/hlgpayment/controller/HlgPaymentDetailController.java

@@ -121,6 +121,9 @@ public class HlgPaymentDetailController {
             pageList.getRecords().get(0).setSumTaxFee(sumTaxFee);
             pageList.getRecords().get(0).setSumPayment(sumPayment);
         }
+        //新加两行代码去掉身份证照片和合同没有的数据
+        list=list.stream().filter(hlgPaymentDetailStatistics1 -> hlgPaymentDetailStatistics1.getWorkContract()!=null && hlgPaymentDetailStatistics1.getIdcardPicture()!=null).collect(Collectors.toList());
+        pageList.setRecords(list);
         pageList.setTotal(list.size());
         result.setSuccess(true);
         result.setResult(pageList);