Commit 17db9bad by 涂亚平

年前上线版本

1 parent 38195ce4
......@@ -60,7 +60,7 @@ public interface VodPlayHistoryMapper extends BaseMapper<VodPlayHistoryDO> {
/**
* 查看这个课程某个成员看的视频课程
*/
ContentVodNewVO memberRecentPlay(Long classId, Long memberId);
List<ContentVodNewVO> memberRecentPlay(Long classId, Long memberId);
/**
* 查看某个成员某个课程的学习日志
......
......@@ -462,9 +462,11 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
contentVodNewVO.setContentVodVOS(contentVodVOS);
//最新的视频记录
ContentVodNewVO contentVodNewVO1 = vodPlayHistoryMapper.memberRecentPlay(contentVodDTO.getClassId(), contentVodDTO.getMemberId());
contentVodNewVO.setId(contentVodNewVO1.getId());
contentVodNewVO.setPlayRecord(contentVodNewVO.getPlayRecord());
List<ContentVodNewVO> contentVodNewVOS = vodPlayHistoryMapper.memberRecentPlay(contentVodDTO.getClassId(), contentVodDTO.getMemberId());
if (contentVodNewVOS.size()>0){
contentVodNewVO.setId(contentVodNewVOS.get(0).getId());
contentVodNewVO.setPlayRecord(contentVodNewVOS.get(0).getPlayRecord());
}
return contentVodNewVO;
}
......
......@@ -105,7 +105,8 @@
AND t.create_date = t2.create_date
) t4 ON t2.vod_id = t4.vod_id
WHERE
t.content_id = #{contentId}
t.delete_date is null
and t.content_id = #{contentId}
) t3
ORDER BY
t3.order_no
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!