Commit 15d8f678 authored by 赵啸非's avatar 赵啸非

添加水印图片

parent c7b031bb
...@@ -167,7 +167,17 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert ...@@ -167,7 +167,17 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert
@Override @Override
public List<CertificateIndustryTreeSelect> getAllListByParentId(Long parentId, Context context) { public List<CertificateIndustryTreeSelect> getAllListByParentId(Long parentId, Context context) {
List<CertificateIndustryEntity> list = this.find(new CertificateIndustryQuery()); List<CertificateIndustryEntity> returnList = new ArrayList<>();
//获取子树列表
List<CertificateIndustryEntity> childsList = this.getDao().selectChildrenCertificateIndustryById(parentId.toString());
CertificateIndustryEntity certificateIndustryEntity = this.get(parentId, context);
childsList.add(certificateIndustryEntity);
recursionFn(childsList, certificateIndustryEntity);
returnList.add(certificateIndustryEntity);
/* List<CertificateIndustryEntity> list = this.find(new CertificateIndustryQuery());
List<CertificateIndustryEntity> returnList = new ArrayList<>(); List<CertificateIndustryEntity> returnList = new ArrayList<>();
List<Long> tempList = list.stream().map(CertificateIndustryEntity::getId).collect(Collectors.toList()); List<Long> tempList = list.stream().map(CertificateIndustryEntity::getId).collect(Collectors.toList());
...@@ -175,7 +185,7 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert ...@@ -175,7 +185,7 @@ public class CertificateIndustryServiceImpl extends AbstractCRUDServiceImpl<Cert
CertificateIndustryEntity certificateIndustryEntity = this.get(parentId, context); CertificateIndustryEntity certificateIndustryEntity = this.get(parentId, context);
recursionFn(list, certificateIndustryEntity); recursionFn(list, certificateIndustryEntity);
returnList.add(certificateIndustryEntity); returnList.add(certificateIndustryEntity);
} }*/
return returnList.stream().map(CertificateIndustryTreeSelect::new).collect(Collectors.toList()); return returnList.stream().map(CertificateIndustryTreeSelect::new).collect(Collectors.toList());
} }
......
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