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 17dd553c
authored
Jun 13, 2023
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
没有看视频的人也要写登录登出数据
1 parent
2308be45
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
src/main/java/com/subsidy/jobs/RenSheJuJob.java
src/main/java/com/subsidy/jobs/WarningJob.java
src/main/java/com/subsidy/service/impl/CourseContentServiceImpl.java
src/main/java/com/subsidy/service/impl/RenSheJuServiceImpl.java
src/main/java/com/subsidy/jobs/RenSheJuJob.java
View file @
17dd553
...
...
@@ -140,7 +140,7 @@ public class RenSheJuJob {
}
@Scheduled
(
cron
=
"0
5
0 23 * * ?"
)
@Scheduled
(
cron
=
"0
4
0 23 * * ?"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
cancelLogin
()
{
...
...
src/main/java/com/subsidy/jobs/WarningJob.java
View file @
17dd553
...
...
@@ -41,7 +41,7 @@ public class WarningJob {
/**
* POST-2:班级基本信息信息采集接口
*/
@Scheduled
(
cron
=
"0 0 2
1
* * ?"
)
@Scheduled
(
cron
=
"0 0 2
3
* * ?"
)
public
void
classBaseInfo
()
throws
IOException
{
if
(
"prod"
.
equals
(
env
))
{
...
...
src/main/java/com/subsidy/service/impl/CourseContentServiceImpl.java
View file @
17dd553
...
...
@@ -115,7 +115,7 @@ public class CourseContentServiceImpl extends ServiceImpl<CourseContentMapper, C
String
totalLengthTmp
=
MathUtil
.
secToTime
(
totalLength
);
//总时长(分钟)
String
totalMinute
=
MathUtil
.
ceil
Second
(
totalLength
);
String
totalMinute
=
MathUtil
.
floor
Second
(
totalLength
);
exportClassContentVOS
.
stream
().
forEach
(
x
->
{
x
.
setTotalLength
(
totalLengthTmp
);
x
.
setTotalMinute
(
totalMinute
);
...
...
src/main/java/com/subsidy/service/impl/RenSheJuServiceImpl.java
View file @
17dd553
...
...
@@ -189,8 +189,8 @@ public class RenSheJuServiceImpl implements RenSheJuService {
List
<
ChapterList3
>
chapterList3s
=
renSheJuMapper
.
dailyStudyRecords
(
dailyStudyInfoVO
.
getMemberId
(),
dailyStudyInfoVO
.
getDownCode
(),
loginRecords
.
get
(
i
).
getCreateDate
().
toString
().
replace
(
"T"
,
" "
),
loginOutRecords
.
get
(
i
).
getCreateDate
().
toString
().
replace
(
"T"
,
" "
));
if
(
chapterList3s
.
size
()
>
0
)
{
loginList
.
setChapterList
(
chapterList3s
);
loginLists
.
add
(
loginList
);
}
loginLists
.
add
(
loginList
);
}
classHourBasic
.
setLoginList
(
loginLists
);
...
...
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