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 9725e0f9
authored
Jan 18, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频纬度报表
1 parent
c5e36ae4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
src/main/resources/mapper/VodDictMapper.xml
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
View file @
9725e0f
...
...
@@ -89,13 +89,7 @@ import java.net.URLEncoder;
import
java.nio.charset.StandardCharsets
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.zip.ZipEntry
;
import
java.util.zip.ZipOutputStream
;
...
...
@@ -878,7 +872,7 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
List
<
VodDictDO
>
vodDictDOS
=
vodDictMapper
.
getCourseVods
(
classDictDO
.
getCourseId
(),
null
);
for
(
ClassDailyInfoVO
classDailyInfoVO
:
classDailyInfoVOS
)
{
//查看
这个人某个视频的长度
//查看
某个视频的完成情况
int
total
=
0
;
List
<
ClassVodDailyInfoItemVO
>
classVodDailyInfoItemVOS
=
new
ArrayList
<>();
for
(
VodDictDO
vodDictDO
:
vodDictDOS
)
{
...
...
@@ -886,9 +880,11 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
ClassVodDailyInfoItemVO
classVodDailyInfoItemVO
=
new
ClassVodDailyInfoItemVO
();
classVodDailyInfoItemVO
.
setPlayLength
(
playLength
);
classVodDailyInfoItemVOS
.
add
(
classVodDailyInfoItemVO
);
total
+=
playLength
;
if
(
playLength
>
vodDictDO
.
getVodLength
()){
total
++;
}
}
classDailyInfoVO
.
setTotal
(
total
);
classDailyInfoVO
.
setTotal
(
MathUtil
.
intDivFloorPercent
(
total
,
vodDictDOS
.
size
())
);
classDailyInfoVO
.
setClassVodDailyInfoItemVOS
(
classVodDailyInfoItemVOS
);
}
return
classDailyInfoVOIPage
;
...
...
src/main/resources/mapper/VodDictMapper.xml
View file @
9725e0f
...
...
@@ -52,7 +52,8 @@
<select
id=
"getCourseVods"
parameterType=
"long"
resultType=
"com.subsidy.model.VodDictDO"
>
SELECT
t2.id,
t2.vod_name
t2.vod_name,
t2.vod_length
FROM
course_content t
LEFT JOIN vod_dict t2 ON t.id = t2.content_id
...
...
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