Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
975eb390
Commit
975eb390
authored
Nov 13, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
382144d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ApplicationStartListener.java
...join/amos/patrol/core/start/ApplicationStartListener.java
+1
-1
JobService.java
.../main/java/com/yeejoin/amos/patrol/quartz/JobService.java
+5
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/core/start/ApplicationStartListener.java
View file @
975eb390
...
...
@@ -25,7 +25,7 @@ public class ApplicationStartListener implements ApplicationListener<ContextRefr
@Override
public
void
onApplicationEvent
(
ContextRefreshedEvent
event
)
{
try
{
if
(
event
.
getApplicationContext
().
getParent
().
getParent
()
==
null
){
if
(
event
.
getApplicationContext
().
getParent
().
getParent
()
.
getParent
()
==
null
){
iPlanTaskService
.
initPlanStatusOrGenDate
();
pointService
.
initPointStatus
();
jobService
.
initScheduler
();
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/quartz/JobService.java
View file @
975eb390
...
...
@@ -172,17 +172,22 @@ public class JobService implements IJobService {
if
(
PlanTaskFinishStatusEnum
.
NOTSTARTED
.
getValue
()
==
planTask
.
getFinishStatus
())
{
if
(
beginTime
.
getTime
()
>
timestamp
)
{
planTaskAddJob
(
planTask
);
log
.
error
(
"项目初始化未开始监听器任务监控========"
);
}
else
if
(
beginTime
.
getTime
()
<
timestamp
&&
endTime
.
getTime
()
>
timestamp
)
{
log
.
error
(
"项目初始化进行中监听器任务监控========"
);
planTaskMapper
.
updatePlanTaskList
(
planTask
.
getPlanId
(),
PlanTaskFinishStatusEnum
.
NOTSTARTED
.
getValue
(),
PlanTaskFinishStatusEnum
.
UNDERWAY
.
getValue
());
planTaskAddJob
(
planTask
);
}
else
if
(
endTime
.
getTime
()
<
timestamp
)
{
log
.
error
(
"修改为漏检生成记录========"
);
updatePlanTaskAndDetailStatus
(
planTask
);
}
}
else
{
if
(
endTime
.
getTime
()
<
timestamp
)
{
log
.
error
(
"项目初始化进行中监听器任务监控2222========"
);
planTaskMapper
.
updatePlanTaskList
(
planTask
.
getPlanId
(),
PlanTaskFinishStatusEnum
.
NOTSTARTED
.
getValue
(),
PlanTaskFinishStatusEnum
.
UNDERWAY
.
getValue
());
planTaskAddJob
(
planTask
);
}
else
{
log
.
error
(
"修改为漏检生成记录2222========"
);
updatePlanTaskAndDetailStatus
(
planTask
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment