Commit eb6c43f5 authored by 赵啸非's avatar 赵啸非

添加目录字段

parent 7942005d
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment