提交 d4a062bc authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 1658f431
......@@ -8,6 +8,7 @@ import com.zrqx.core.form.resource.bg.speciallibrary.BatchUpdateSpecialSortForm;
import com.zrqx.core.model.resource.label.LabelContentDiyType;
import com.zrqx.core.util.bean.BeanUtils;
import com.zrqx.core.util.bean.Copy;
import com.zrqx.core.util.datatype.ArrayUtils;
import com.zrqx.core.util.page.PageParam;
import com.zrqx.core.util.response.CallBack;
import com.zrqx.core.vo.resource.label.LabelAndContentByDataTypeVO;
......@@ -121,9 +122,12 @@ public class RecommendLabelRelationController {
}
}
}
List<LabelContentDiyTypeVO> voList = Copy.copyList(list , LabelContentDiyTypeVO.class, obj -> obj.getParentId().intValue() == 0);
tree(list,voList);
return CallBack.success(voList);
if (ArrayUtils.isNotEmpty(list)){
List<LabelContentDiyTypeVO> voList = Copy.copyList(list , LabelContentDiyTypeVO.class, obj -> obj.getParentId().intValue() == 0);
tree(list,voList);
return CallBack.success(voList);
}
return CallBack.success();
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论