|
@@ -83,7 +83,7 @@ public class NewsInfoServiceImpl extends ServiceImpl<NewsInfoMapper, NewsInfo> i
|
|
NewsInfo newsInfo1= this.selectById(newsInfo.getId());
|
|
NewsInfo newsInfo1= this.selectById(newsInfo.getId());
|
|
if(newsInfo1 != null){
|
|
if(newsInfo1 != null){
|
|
newsInfo1.setNewsFlag("1");
|
|
newsInfo1.setNewsFlag("1");
|
|
- this.updateById(newsInfo);
|
|
|
|
|
|
+ this.updateById(newsInfo1);
|
|
return "ok";
|
|
return "ok";
|
|
}
|
|
}
|
|
return "ng";
|
|
return "ng";
|
|
@@ -102,7 +102,7 @@ public class NewsInfoServiceImpl extends ServiceImpl<NewsInfoMapper, NewsInfo> i
|
|
if(CollectionUtil.isNotEmpty(newsInfoList)){
|
|
if(CollectionUtil.isNotEmpty(newsInfoList)){
|
|
for(NewsInfo newsInfo1 :newsInfoList){
|
|
for(NewsInfo newsInfo1 :newsInfoList){
|
|
newsInfo1.setNewsFlag("1");
|
|
newsInfo1.setNewsFlag("1");
|
|
- this.updateById(newsInfo);
|
|
|
|
|
|
+ this.updateById(newsInfo1);
|
|
}
|
|
}
|
|
return "ok";
|
|
return "ok";
|
|
}
|
|
}
|