diff --git a/one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java b/one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java index 2a996df4f8526cc3a22a7cda23a43d615ef29072..92f331b34e75c84f7413d55360f38cf567c15a45 100644 --- a/one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java +++ b/one-certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java @@ -144,12 +144,11 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap .collect(Collectors.groupingBy(ChildLicenseEntity::getApplyId)); for (ApplyLogEntity entity : list) { - //List<ChildLicenseEntity> childLicenseList = childLicenseService.find(new ChildLicenseQuery().applyId(entity.getId())); List<ChildLicenseEntity> childLicenseList = childLicenseListMap.get(entity.getId()); Predicate<ChildLicenseEntity> enablePredicate =item->item.getChildStatus() == StatusEnum.ENABLE.getValue(); Predicate<ChildLicenseEntity> processPredicate =item->item.getChildStatus() == StatusEnum.ENABLE.getValue()&&item.getProcessStatus() == ProcessStatusEnum.宸插鐞�.getValue(); - long childSum = childLicenseList.stream().filter(enablePredicate).count(); - long pCount = childLicenseList.stream().filter(processPredicate).count(); + long childSum = childLicenseList.parallelStream().filter(enablePredicate).count(); + long pCount = childLicenseList.parallelStream().filter(processPredicate).count(); List<CertificateDocumentPdu> documentEntityList = childLicenseList.stream().map(item -> { CertificateDocumentPdu pdu = new CertificateDocumentPdu(); pdu.setId(item.getId()); @@ -179,7 +178,6 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap }*/ entity.setProcessStatus(pCount + "/" + childSum); entity.setChildCertificate(documentEntityList); - //entity.setChildLicense(childLicenseList); } }