Commit e7da5a36 by 阳浪

投稿其他

parent 7e67277d
...@@ -120,6 +120,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi ...@@ -120,6 +120,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
list = publicationMapper.publicationFirstList(vo, page);//新闻分类列表 list = publicationMapper.publicationFirstList(vo, page);//新闻分类列表
if (list.size() > 0 && list != null) { if (list.size() > 0 && list != null) {
for (Publication info : list) { for (Publication info : list) {
if(info.getTypeOne() != null && info.getTypeOne() == 0){
info.setTypeOneName("其他");
}
if (info.getTypeOne() != null && info.getTypeOne() != 0) { if (info.getTypeOne() != null && info.getTypeOne() != 0) {
info.setTypeOneName(findNameById(info.getTypeOne())); info.setTypeOneName(findNameById(info.getTypeOne()));
} }
...@@ -229,6 +232,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi ...@@ -229,6 +232,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
if (info == null) { if (info == null) {
return null; return null;
} }
if(info.getTypeOne() != null && info.getTypeOne() == 0){
info.setTypeOneName("其他");
}
if (info.getTypeOne() != null && info.getTypeOne() != 0) { if (info.getTypeOne() != null && info.getTypeOne() != 0) {
info.setTypeOneName(findNameById(info.getTypeOne())); info.setTypeOneName(findNameById(info.getTypeOne()));
} }
...@@ -456,6 +462,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi ...@@ -456,6 +462,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
if (list.size() > 0 && list != null) { if (list.size() > 0 && list != null) {
for (Publication info : list) { for (Publication info : list) {
if(info.getTypeOne() != null && info.getTypeOne() == 0){
info.setTypeOneName("其他");
}
if (info.getTypeOne() != null && info.getTypeOne() != 0) { if (info.getTypeOne() != null && info.getTypeOne() != 0) {
info.setTypeOneName(findNameById(info.getTypeOne())); info.setTypeOneName(findNameById(info.getTypeOne()));
} }
......
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