|
@@ -62,9 +62,9 @@ public class SysNewsInformationServiceImpl extends ServiceImpl<SysNewsInformatio
|
|
|
List<NewsInformationDto> resultList = new ArrayList<>();
|
|
|
if(CollectionUtils.isNotEmpty(dtos)){
|
|
|
List<String> musicGroupIds = musicGroupDao.findNormalByCooperationId(coopId);
|
|
|
- if(CollectionUtils.isNotEmpty(musicGroupIds)){
|
|
|
- for (SysNewsInformation dto : dtos) {
|
|
|
- NewsInformationDto informationDto = JSON.parseObject(JSON.toJSONString(dto), NewsInformationDto.class);
|
|
|
+ for (SysNewsInformation dto : dtos) {
|
|
|
+ NewsInformationDto informationDto = JSON.parseObject(JSON.toJSONString(dto), NewsInformationDto.class);
|
|
|
+ if(CollectionUtils.isNotEmpty(musicGroupIds)){
|
|
|
if(informationDto.getRedPoint() != null){
|
|
|
//统计是否有红点
|
|
|
switch (informationDto.getRedPoint()) {
|
|
@@ -77,8 +77,8 @@ public class SysNewsInformationServiceImpl extends ServiceImpl<SysNewsInformatio
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- resultList.add(informationDto);
|
|
|
}
|
|
|
+ resultList.add(informationDto);
|
|
|
}
|
|
|
}
|
|
|
return resultList;
|