Commit 5090179c by 郑永强

1023490 立享权益bug

parent e52f05b1
......@@ -905,8 +905,6 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
}
List<RightsNowItem> nowItems = rightsNowItemDao.getListByRightsSettingId(rightsSetting.getId(), types);
if (!ListUtils.isEmpty(nowItems)) {
// 填充应用、作品、社群、资讯
fillProductAndApp(nowItems);
rightsSettingTitler4Online.setRightsSettingItemList(
nowItems.stream().filter(s -> RightsNowItemType.ONLINE_COURSE.value.equals(s.getType())).collect(Collectors.toList()));
rightsSettingTitler4Learningtool.setRightsSettingItemList(
......@@ -915,6 +913,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
nowItems.stream().filter(s -> RightsNowItemType.DRAW.value.equals(s.getType())).collect(Collectors.toList()));
rightsSettingTitler4Group.setRightsSettingItemList(
nowItems.stream().filter(s -> RightsNowItemType.GROUP_SERVICE.value.equals(s.getType()) && s.getServeType() != null).collect(Collectors.toList()));
// 填充应用、作品、社群、资讯
fillProductAndApp(nowItems);
}
rightsSetting.setOnlineRightsSettingTitle(rightsSettingTitler4Online);
rightsSetting.setLearningToolTitle(rightsSettingTitler4Learningtool);
......@@ -1035,6 +1035,8 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if(appletNewsDTO != null){
item.setNewsName(appletNewsDTO.getNewsName());
item.setNewsSource(appletNewsDTO.getSource());
item.setSource(appletNewsDTO.getSource());
// item的type字段跟appletNewsDTO的type字段有些冲突,前端会根据type来展示不同的样式
item.setType(appletNewsDTO.getType());
item.setServeId(appletNewsDTO.getId());
......
......@@ -79,7 +79,9 @@ public class RightsNowItem extends BaseEntity {
private GroupActivity4AppletDTO groupActivity4AppletDTO;
@ApiModelProperty("资讯名称")
private String newsName;
@ApiModelProperty("资讯图")
@ApiModelProperty("来源")
private String newsSource;
@ApiModelProperty("来源")
private String source;
}
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