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 a9af8cca
authored
Dec 29, 2021
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务关掉
1 parent
761eaf22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
src/main/java/com/subsidy/jobs/Scheduler.java
src/main/resources/mapper/ExerciseDoneResultMapper.xml
src/main/java/com/subsidy/jobs/Scheduler.java
View file @
a9af8cc
...
...
@@ -44,7 +44,7 @@ public class Scheduler {
/**
删除十天前登录记录(管理端)
*/
@Scheduled
(
cron
=
"0 42 18 * * ?"
)
//
@Scheduled(cron = "0 42 18 * * ?")
public
void
delOprAdmRecord
()
{
List
<
OprAdmDictDO
>
list
=
oprAdmDictMapper
.
getRecordByDate
();
if
(
list
!=
null
)
{
...
...
@@ -57,7 +57,7 @@ public class Scheduler {
/**
* 删除十天前登录记录(学员)
*/
@Scheduled
(
cron
=
"0 42 18 * * ?"
)
//
@Scheduled(cron = "0 42 18 * * ?")
public
void
delOprMemRecord
()
{
List
<
OprMemDictDO
>
list
=
oprMemDictMapper
.
getRecordByDate
();
if
(
list
!=
null
)
{
...
...
@@ -70,7 +70,7 @@ public class Scheduler {
/**
* 用户数据审计记录添加(学员)
*/
@Scheduled
(
cron
=
"0 39 18 * * ?"
)
//
@Scheduled(cron = "0 39 18 * * ?")
public
void
getOprMemRecord
()
{
Set
<
String
>
set
=
redisUtil
.
keys
(
"*memberLogin*"
);
if
(
set
!=
null
)
{
...
...
@@ -92,7 +92,7 @@ public class Scheduler {
/**
* 视频播放记录缩量
*/
@Scheduled
(
cron
=
"0 35 18 * * ?"
)
//
@Scheduled(cron = "0 35 18 * * ?")
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
condenseVodPlayHistory
()
{
List
<
VodPlayHistoryDO
>
list
=
vodPlayHistoryMapper
.
getVodPlayHistory
();
...
...
src/main/resources/mapper/ExerciseDoneResultMapper.xml
View file @
a9af8cc
...
...
@@ -42,7 +42,7 @@
<if
test=
"paperId != null and paperId !=''"
>
AND t.paper_id = #{paperId}
</if>
order by t.
create_date
order by t.
score desc
</select>
<select
id=
"getPaperDetail"
resultType=
"com.subsidy.vo.administer.GetPaperDetailVO"
>
...
...
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