提交 eb105013 authored 作者: jiashixiong's avatar jiashixiong

前台公共资源接口添加查询专家

上级 8669bcfd
......@@ -39,4 +39,6 @@ public class FgCourseLibraryListVO {
private Integer totalPeriods;
@ApiModelProperty("广告语")
private String adSlogan;
@ApiModelProperty("学习人数")
private Integer leaningsum;
}
......@@ -452,7 +452,7 @@ public class FgCourseLibrarySerivceImpl extends
/**
* 去标签
* @param list
* @param
* @author ycw
* @date: 2019年4月18日 上午11:57:55
*/
......@@ -577,7 +577,11 @@ public class FgCourseLibrarySerivceImpl extends
}
list.forEach(f -> {
if(AllResourceTypeEnum.COURSE.getCode().equals(f.getResourceType())) {
Integer updatePeriods = videoMapper.selectUpdatePeriods(f.getId());
Integer updatePeriods = videoMapper.selectUpdatePeriods(f.getId());
Record record = new Record();
record.setGoodsId(f.getId());
List<Record> list1 = recordMapper.select(record);
f.setLeaningsum(list1.size());
f.setUpdatePeriods(updatePeriods);
}
});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论