Commit 1879d591 by 吴迪

【新增】修改文件

parent 6b9e05a7
...@@ -65,10 +65,12 @@ public class NewsController extends AbstractController { ...@@ -65,10 +65,12 @@ public class NewsController extends AbstractController {
NewsclassEntity newsclassEntity = newsclassService.getById(news.getClassid()); NewsclassEntity newsclassEntity = newsclassService.getById(news.getClassid());
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.getPId());
news.setCclassid(newsclassEntity.getId());
news.setCclassName(news.getClassName()); news.setCclassName(news.getClassName());
news.setClassName(newsclassEntity.getName()); NewsclassEntity newsclassEntityP = newsclassService.getById(newsclassEntity.getPId());
news.setCclassid(newsclassEntity.getPId()); news.setClassName(newsclassEntityP.getName());
} }
} }
......
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