Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 17db9bad
authored
Jan 26, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
年前上线版本
1 parent
38195ce4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
src/main/java/com/subsidy/mapper/VodPlayHistoryMapper.java
src/main/java/com/subsidy/service/impl/MemberServiceImpl.java
src/main/resources/mapper/CourseContentMapper.xml
src/main/java/com/subsidy/mapper/VodPlayHistoryMapper.java
View file @
17db9ba
...
@@ -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
);
/**
/**
* 查看某个成员某个课程的学习日志
* 查看某个成员某个课程的学习日志
...
...
src/main/java/com/subsidy/service/impl/MemberServiceImpl.java
View file @
17db9ba
...
@@ -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
;
}
}
...
...
src/main/resources/mapper/CourseContentMapper.xml
View file @
17db9ba
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment