Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
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
zhaowei
dlink
Commits
7a6749bf
Commit
7a6749bf
authored
Apr 19, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-427] [admin] Task status error when task has stoped
parent
7c753b85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
TaskServiceImpl.java
...src/main/java/com/dlink/service/impl/TaskServiceImpl.java
+5
-5
No files found.
dlink-admin/src/main/java/com/dlink/service/impl/TaskServiceImpl.java
View file @
7a6749bf
...
@@ -223,11 +223,11 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
...
@@ -223,11 +223,11 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
if
(
statement
!=
null
)
{
if
(
statement
!=
null
)
{
task
.
setStatement
(
statement
.
getStatement
());
task
.
setStatement
(
statement
.
getStatement
());
}
}
if
(
Asserts
.
isNull
(
task
.
getJobInstanceId
())
||
task
.
getJobInstanceId
()
==
0
)
{
JobInstance
jobInstance
=
jobInstanceService
.
getJobInstanceByTaskId
(
id
);
JobInstance
jobInstance
=
jobInstanceService
.
getJobInstanceByTaskId
(
id
);
if
(
Asserts
.
isNotNull
(
jobInstance
)
&&
!
JobStatus
.
isDone
(
jobInstance
.
getStatus
()))
{
if
(
Asserts
.
isNotNull
(
jobInstance
)
&&
!
JobStatus
.
isDone
(
jobInstance
.
getStatus
()))
{
task
.
setJobInstanceId
(
jobInstance
.
getId
());
task
.
setJobInstanceId
(
jobInstance
.
getId
());
}
}
else
{
task
.
setJobInstanceId
(
0
);
}
}
}
}
return
task
;
return
task
;
...
...
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