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
6871c11e
Commit
6871c11e
authored
Nov 10, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务超时创建漏检记录
parent
c91c35d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
13 deletions
+22
-13
PlanTaskMapper.java
...ejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
+4
-0
JobService.java
.../main/java/com/yeejoin/amos/patrol/quartz/JobService.java
+1
-10
dbTemplate_plan_task.xml
...biz/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+17
-3
No files found.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
View file @
6871c11e
...
@@ -227,5 +227,9 @@ public interface PlanTaskMapper extends BaseMapper {
...
@@ -227,5 +227,9 @@ public interface PlanTaskMapper extends BaseMapper {
List
<
Long
>
getPlanTaskListByPlanId
(
long
planId
,
int
finishStatus
);
List
<
Long
>
getPlanTaskListByPlanId
(
long
planId
,
int
finishStatus
);
List
<
PlanTask
>
getPlanTaskTListByPlanId
(
long
planId
,
int
finishStatus
);
void
updatePlanTaskByPlanId
(
List
<
Long
>
ids
,
int
finishStatus
);
void
updatePlanTaskByPlanId
(
List
<
Long
>
ids
,
int
finishStatus
);
void
updatePlanTaskDetailsByPlanId
(
List
<
Long
>
ids
,
int
finishStatus
);
}
}
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 @
6871c11e
...
@@ -602,16 +602,7 @@ public class JobService implements IJobService {
...
@@ -602,16 +602,7 @@ public class JobService implements IJobService {
}
else
if
(
XJConstant
.
STATUS_MONITOR_END
.
equals
(
jobType
))
{
}
else
if
(
XJConstant
.
STATUS_MONITOR_END
.
equals
(
jobType
))
{
if
(!
ValidationUtil
.
isEmpty
(
StartPlanTaskList
))
{
if
(!
ValidationUtil
.
isEmpty
(
StartPlanTaskList
))
{
planTaskMapper
.
updatePlanTaskByPlanId
(
StartPlanTaskList
,
PlanTaskFinishStatusEnum
.
OVERTIME
.
getValue
());
planTaskMapper
.
updatePlanTaskByPlanId
(
StartPlanTaskList
,
PlanTaskFinishStatusEnum
.
OVERTIME
.
getValue
());
for
(
Long
id
:
StartPlanTaskList
)
{
planTaskMapper
.
updatePlanTaskDetailsByPlanId
(
StartPlanTaskList
,
PlanTaskFinishStatusEnum
.
OVERTIME
.
getValue
());
List
<
PlanTaskDetail
>
planTaskDetails
=
iPlanTaskDetailDao
.
findAllByTaskNoAndStatus
(
id
,
PlanTaskDetailStatusEnum
.
NOTSTARTED
.
getValue
());
if
(!
planTaskDetails
.
isEmpty
())
{
planTaskDetails
.
stream
().
forEach
(
action
->
{
action
.
setIsFinish
(
PlanTaskDetailIsFinishEnum
.
OVERTIME
.
getValue
());
action
.
setStatus
(
PlanTaskDetailStatusEnum
.
OMISSION
.
getValue
());
iPlanTaskDetailDao
.
saveAndFlush
(
action
);
});
}
}
for
(
PlanTask
planTask:
planTaskList
for
(
PlanTask
planTask:
planTaskList
)
{
)
{
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
6871c11e
...
@@ -1584,13 +1584,26 @@
...
@@ -1584,13 +1584,26 @@
<update
id=
"updatePlanTaskByPlanId"
>
<update
id=
"updatePlanTaskByPlanId"
>
update
update
"p_plan_task"
"p_plan_task"
set
finish_status = #{finishStatus}
where
id in
<foreach
item=
"id"
collection=
"ids"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</update>
<update
id=
"updatePlanTaskDetailsByPlanId"
>
update
"p_plan_task_detail"
set
set
finish_status = #{finishStatus}
is_finish = 2,
status = 3
where
where
id
in
task_no
in
<foreach
item=
"id"
collection=
"ids"
index=
"index"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"id"
collection=
"ids"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{id}
#{id}
</foreach>
</foreach>
AND is_finish = 0
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
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