mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-10-13 21:30:22 +00:00
优化 任务管理 页面
This commit is contained in:
@@ -160,7 +160,9 @@ public class AssignmentService {
|
||||
new LambdaQueryWrapper<AssignmentJobEntity>()
|
||||
.eq(AssignmentJobEntity::getAssignmentId, e.getId()).orderByDesc(AssignmentJobEntity::getCreateTime)
|
||||
.last(" limit 1 "));
|
||||
Integer status = assignmentJobEntity.getStatus();
|
||||
Integer status = (assignmentJobEntity == null || assignmentJobEntity.getStatus() == null) ?
|
||||
JobStatusEnum.INIT.getValue() :
|
||||
assignmentJobEntity.getStatus();
|
||||
e.setRunStatus(JobStatusEnum.of(status).getName());
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user