Commit ac10cc6a by 吴迪

【新增】修改文件

parent b3600408
......@@ -61,7 +61,7 @@ public class NewsController extends AbstractController {
NewsEntity news = newsService.getById(id);
String name = this.newsService.selectClassName(news.getClassid());
news.setClassName(name);
//根据classid查询有没有父级id
/* //根据classid查询有没有父级id
NewsclassEntity newsclassEntity = newsclassService.getById(news.getClassid());
if(newsclassEntity!=null) {
if(newsclassEntity.getPId()!=null &&newsclassEntity.getPId()!=0) {
......@@ -70,10 +70,8 @@ public class NewsController extends AbstractController {
news.setCclassName(news.getClassName());
NewsclassEntity newsclassEntityP = newsclassService.getById(newsclassEntity.getPId());
news.setClassName(newsclassEntityP.getName());
}
}
}*/
return R.ok().put("news", news);
}
......
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