Commit 6b9e05a7 by 吴迪

【新增】修改文件

parent e905020f
...@@ -66,9 +66,10 @@ public class NewsController extends AbstractController { ...@@ -66,9 +66,10 @@ public class NewsController extends AbstractController {
if(newsclassEntity!=null) { if(newsclassEntity!=null) {
if(newsclassEntity.getPId()!=null &&newsclassEntity.getPId()!=0) { if(newsclassEntity.getPId()!=null &&newsclassEntity.getPId()!=0) {
news.setClassid(newsclassEntity.getId()); news.setClassid(newsclassEntity.getId());
news.setCclassName(news.getClassName());
news.setClassName(newsclassEntity.getName()); news.setClassName(newsclassEntity.getName());
news.setCclassid(news.getClassid()); news.setCclassid(newsclassEntity.getPId());
news.setClassName(news.getClassName());
} }
} }
return R.ok().put("news", news); 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