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 aeb159d0
authored
Mar 10, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022.03.10 疫情备份
1 parent
befd16cc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
15 deletions
src/main/java/com/subsidy/controller/AdministerController.java
src/main/java/com/subsidy/controller/ClassDictController.java
src/main/java/com/subsidy/controller/CompanyDictController.java
src/main/java/com/subsidy/service/impl/VodPlayHistoryServiceImpl.java
src/main/resources/mapper/VodPlayHistoryMapper.xml
src/main/java/com/subsidy/controller/AdministerController.java
View file @
aeb159d
...
@@ -88,7 +88,7 @@ public class AdministerController {
...
@@ -88,7 +88,7 @@ public class AdministerController {
@PostMapping
(
"classSummary"
)
@PostMapping
(
"classSummary"
)
@ApiOperation
(
"班级详情--数据概览 id 班级id "
)
@ApiOperation
(
"班级详情--数据概览 id 班级id "
)
@LoginRequired
(
value
=
{
ConstantUtils
.
ADMINISTER_TERMINATE
})
//
@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE})
public
ResponseVO
classSummary
(
@RequestBody
ClassDetailDTO
classDetailDTO
){
public
ResponseVO
classSummary
(
@RequestBody
ClassDetailDTO
classDetailDTO
){
return
ResponseData
.
generateCreatedResponse
(
0
,
administerService
.
classSummary
(
classDetailDTO
));
return
ResponseData
.
generateCreatedResponse
(
0
,
administerService
.
classSummary
(
classDetailDTO
));
}
}
...
...
src/main/java/com/subsidy/controller/ClassDictController.java
View file @
aeb159d
...
@@ -80,7 +80,6 @@ public class ClassDictController {
...
@@ -80,7 +80,6 @@ public class ClassDictController {
@PostMapping
(
"getSpareMembers"
)
@PostMapping
(
"getSpareMembers"
)
@ApiOperation
(
"获取不在某班级的某企业里所有成员 companyId 企业id classId 班级id"
)
@ApiOperation
(
"获取不在某班级的某企业里所有成员 companyId 企业id classId 班级id"
)
@LoginRequired
(
value
=
{
ConstantUtils
.
ADMINISTER_TERMINATE
})
public
ResponseVO
getSpareMembers
(
@RequestBody
GetSpareMembersDTO
getSpareMembersDTO
){
public
ResponseVO
getSpareMembers
(
@RequestBody
GetSpareMembersDTO
getSpareMembersDTO
){
return
ResponseData
.
generateCreatedResponse
(
0
,
classDictService
.
getSpareMembers
(
getSpareMembersDTO
));
return
ResponseData
.
generateCreatedResponse
(
0
,
classDictService
.
getSpareMembers
(
getSpareMembersDTO
));
}
}
...
...
src/main/java/com/subsidy/controller/CompanyDictController.java
View file @
aeb159d
...
@@ -35,7 +35,7 @@ public class CompanyDictController {
...
@@ -35,7 +35,7 @@ public class CompanyDictController {
@PostMapping
(
"/administers"
)
@PostMapping
(
"/administers"
)
@ApiOperation
(
"查询所有企业 {id companyName fieldId 行业id pageNum pageSize }"
)
@ApiOperation
(
"查询所有企业 {id companyName fieldId 行业id pageNum pageSize }"
)
@LoginRequired
(
value
=
{
ConstantUtils
.
ADMINISTER_TERMINATE
})
//
@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE})
public
ResponseVO
operators
(
@RequestBody
OperatorsDTO
operatorsDTO
){
public
ResponseVO
operators
(
@RequestBody
OperatorsDTO
operatorsDTO
){
return
ResponseData
.
generateCreatedResponse
(
0
,
companyDictService
.
operators
(
operatorsDTO
));
return
ResponseData
.
generateCreatedResponse
(
0
,
companyDictService
.
operators
(
operatorsDTO
));
}
}
...
...
src/main/java/com/subsidy/service/impl/VodPlayHistoryServiceImpl.java
View file @
aeb159d
...
@@ -455,11 +455,6 @@ public class VodPlayHistoryServiceImpl extends ServiceImpl<VodPlayHistoryMapper,
...
@@ -455,11 +455,6 @@ public class VodPlayHistoryServiceImpl extends ServiceImpl<VodPlayHistoryMapper,
//查找课程里的所有视频
//查找课程里的所有视频
List
<
VodDictDO
>
vodDictDOS
=
courseContentMapper
.
getCourseVods
(
classDictDO
.
getCourseId
());
List
<
VodDictDO
>
vodDictDOS
=
courseContentMapper
.
getCourseVods
(
classDictDO
.
getCourseId
());
int
vodTotalLength
=
0
;
for
(
VodDictDO
vodDictDO
:
vodDictDOS
)
{
vodTotalLength
+=
vodDictDO
.
getVodLength
();
}
//查看每个人看视频的时长
//查看每个人看视频的时长
for
(
ClassMemberMappingDO
classMemberMappingDO
:
classMemberMappingDOS
)
{
for
(
ClassMemberMappingDO
classMemberMappingDO
:
classMemberMappingDOS
)
{
...
@@ -518,13 +513,13 @@ public class VodPlayHistoryServiceImpl extends ServiceImpl<VodPlayHistoryMapper,
...
@@ -518,13 +513,13 @@ public class VodPlayHistoryServiceImpl extends ServiceImpl<VodPlayHistoryMapper,
//今天应该看多久视频
//今天应该看多久视频
int
totalPlayLength
=
0
;
int
totalPlayLength
=
0
;
if
(
signInRecordDOS
.
size
()
==
3
)
{
if
(
localDateTimes
.
size
()
==
3
)
{
totalPlayLength
=
_3times
();
totalPlayLength
=
_3times
();
}
else
if
(
signInRecordDOS
.
size
()
==
4
)
{
}
else
if
(
localDateTimes
.
size
()
==
4
)
{
totalPlayLength
=
_4times
();
totalPlayLength
=
_4times
();
}
else
if
(
signInRecordDOS
.
size
()
==
5
)
{
}
else
if
(
localDateTimes
.
size
()
==
5
)
{
totalPlayLength
=
_5times
();
totalPlayLength
=
_5times
();
}
else
if
(
signInRecordDOS
.
size
()
==
6
)
{
}
else
if
(
localDateTimes
.
size
()
==
6
)
{
totalPlayLength
=
_6times
();
totalPlayLength
=
_6times
();
}
else
{
}
else
{
totalPlayLength
=
_7times
();
totalPlayLength
=
_7times
();
...
...
src/main/resources/mapper/VodPlayHistoryMapper.xml
View file @
aeb159d
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
delete_date,
delete_date,
id, class_id, vod_id, member_id, play_length, play_record
id, class_id, vod_id, member_id, play_length, play_record
</sql>
</sql>
<delete
id=
"deleteById"
>
<!-- <delete id="deleteById">--
>
delete from vod_play_history
<!-- delete from vod_play_history-->
</delete
>
<!-- </delete>--
>
<select
id=
"studyHistory"
parameterType=
"long"
resultType=
"com.subsidy.vo.vod.StudyHistoryVO"
>
<select
id=
"studyHistory"
parameterType=
"long"
resultType=
"com.subsidy.vo.vod.StudyHistoryVO"
>
SELECT
SELECT
...
...
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