Commit 17db9bad by 涂亚平

年前上线版本

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