Commit 3a0d5f10 authored by 赵啸非's avatar 赵啸非

添加目录字段

parent d3a435ab
......@@ -145,7 +145,10 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
for (ApplyLogEntity entity : list) {
//List<ChildLicenseEntity> childLicenseList = childLicenseService.find(new ChildLicenseQuery().applyId(entity.getId()));
List<ChildLicenseEntity> childLicenseList = childLicenseListMap.get(entity.getId());
int childSum = 0;
long childSum = childLicenseList.stream().filter(item -> item.getChildStatus() == StatusEnum.ENABLE.getValue()).count();
long pCount = childLicenseList.stream().filter(item -> item.getChildStatus() == StatusEnum.ENABLE.getValue()&&item.getProcessStatus() == ProcessStatusEnum.已处理.getValue()).count();
/* int childSum = 0;
int pCount = 0;
List<CertificateDocumentPdu> documentEntityList = new ArrayList<>();
for (ChildLicenseEntity item : childLicenseList) {
......@@ -163,9 +166,10 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
CertificateDocumentPdu pdu = new CertificateDocumentPdu();
BeanUtils.copyProperties(documentEntity, pdu);
documentEntityList.add(pdu);
}
}*/
entity.setProcessStatus(pCount + "/" + childSum);
entity.setChildCertificate(documentEntityList);
// 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