Commit d60c6f81 by 阳浪

文章咨询三级分类

parent 6f2fdc05
......@@ -93,6 +93,9 @@ public class InformationVo{
@ApiModelProperty(value = "上传的pdf文件名")
private String pdfFileName;
@ApiModelProperty(value = "文章第三层类型")
private Long typeThree;
protected Serializable pkVal() {
return this.id;
......
......@@ -128,6 +128,17 @@ public class DataClassificationServiceImpl extends ServiceImpl<DataClassificatio
if (CollectionUtil.isNotEmpty(selectByMap)) {
for (DataClassification d : selectByMap) {
DataClassificationVo entityVo = new DataClassificationVo();
wrapper.eq("parent_id", entityVo.getId());
List<DataClassification> selectChildByMap = dataClassificationService.selectList(wrapper);
if(CollectionUtil.isNotEmpty(selectChildByMap)){
List<DataClassificationVo> selectChildVoByMap=new ArrayList<>();
for (DataClassification s : selectChildByMap) {
DataClassificationVo entityChildVo = new DataClassificationVo();
BeanUtils.copyProperties(s, entityChildVo);
selectChildVoByMap.add(entityVo);
}
entityVo.setChildClassifyNews(selectChildVoByMap);
}
BeanUtils.copyProperties(d, entityVo);
selectVoByMap.add(entityVo);
}
......
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