Merge branch 'test' into dev
This commit is contained in:
commit
4eee0b5b0a
|
|
@ -226,6 +226,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
|
|||
map.put("dyEpisodeId", "");
|
||||
map.put("wxCourseDetailsId", "");
|
||||
map.putAll(countMap);
|
||||
map.put("courseId", courseId + "");
|
||||
}
|
||||
PageUtils pageUtils = PageUtils.page(pageInfo);
|
||||
// setCache(cacheKey, JSONUtil.toJsonStr(pageUtils));
|
||||
|
|
@ -1299,10 +1300,10 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
|
|||
|
||||
if ("start".equals(type)) {
|
||||
//开始播放
|
||||
courseDetailsDao.updateViewCount(details.getCourseId(),details.getCourseDetailsId(), 1);
|
||||
courseDetailsDao.updateViewCount(details.getCourseId(), details.getCourseDetailsId(), 1);
|
||||
} else if ("end".equals(type)) {
|
||||
//播放完成
|
||||
courseDetailsDao.updateViewCount(details.getCourseId(),details.getCourseDetailsId(), 2);
|
||||
courseDetailsDao.updateViewCount(details.getCourseId(), details.getCourseDetailsId(), 2);
|
||||
}
|
||||
|
||||
return Result.success();
|
||||
|
|
|
|||
Loading…
Reference in New Issue