|
|
@ -210,6 +210,7 @@ public class SpecialSubjectServiceImpl extends BaseServiceImpl<SpecialSubjectDao |
|
|
|
result.setCanDel(true); |
|
|
|
result.setAddOrgId(dto.getAddOrgId()); |
|
|
|
result.setOrgLevel(dto.getOrgLevel()); |
|
|
|
result.setTagColor(dto.getTagColor()); |
|
|
|
currentOrgList.add(result); |
|
|
|
}); |
|
|
|
if (CollectionUtils.isNotEmpty(currentOrgList)) { |
|
|
@ -232,6 +233,7 @@ public class SpecialSubjectServiceImpl extends BaseServiceImpl<SpecialSubjectDao |
|
|
|
result.setCanDel(false); |
|
|
|
result.setAddOrgId(dto.getAddOrgId()); |
|
|
|
result.setOrgLevel(dto.getOrgLevel()); |
|
|
|
result.setTagColor(dto.getTagColor()); |
|
|
|
resultDTOList.add(result); |
|
|
|
}); |
|
|
|
} |
|
|
@ -280,14 +282,16 @@ public class SpecialSubjectServiceImpl extends BaseServiceImpl<SpecialSubjectDao |
|
|
|
@Override |
|
|
|
public List<PreviewResultDTO> preview(PreviewFormDTO formDTO) { |
|
|
|
List<PreviewResultDTO> result = new ArrayList<>(); |
|
|
|
if (CollectionUtils.isNotEmpty(formDTO.getTagIdList())) { |
|
|
|
formDTO.getTagIdList().forEach(tagId -> { |
|
|
|
PreviewResultDTO previewResultDTO = new PreviewResultDTO(); |
|
|
|
SpecialSubjectEntity subjectEntity = baseDao.getInfo(tagId); |
|
|
|
previewResultDTO.setSpecialSubjectId(subjectEntity.getId()); |
|
|
|
previewResultDTO.setTagName(subjectEntity.getTagName()); |
|
|
|
SpecialSubjectDTO subject = baseDao.getInfo(tagId); |
|
|
|
previewResultDTO.setSpecialSubjectId(subject.getId()); |
|
|
|
previewResultDTO.setTagName(subject.getTagName()); |
|
|
|
previewResultDTO.setArticleList(articleService.getArticleListByTag(tagId, formDTO.getPageNo(), formDTO.getPageSize())); |
|
|
|
result.add(previewResultDTO); |
|
|
|
}); |
|
|
|
} |
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|