Commit 1878a685 authored by 赵啸非's avatar 赵啸非

添加目录字段

parent b8260dcb
...@@ -50,9 +50,8 @@ public class CertificateDocumentController extends BaseCRUDJsonBodyMappingContro ...@@ -50,9 +50,8 @@ public class CertificateDocumentController extends BaseCRUDJsonBodyMappingContro
if(!ObjectUtils.isEmpty(query.getCatalogId())){ if(!ObjectUtils.isEmpty(query.getCatalogId())){
List<Long> documentIdList = certificateChildService.find(new CertificateChildQuery().catalogId(query.getCatalogId())).stream() List<Long> documentIdList = certificateChildService.find(new CertificateChildQuery().catalogId(query.getCatalogId())).stream()
.map(CertificateChildEntity::getDocumentId).collect(Collectors.toList()); .map(CertificateChildEntity::getDocumentId).collect(Collectors.toList());
if(!ObjectUtils.isEmpty(documentIdList)){
query.setIdList(documentIdList); query.setIdList(documentIdList);
}
} }
super.doListBefore(query, model, context); super.doListBefore(query, model, context);
} }
......
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