|
|
|
@ -191,6 +191,10 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
TaskDefinition taskDefinition = taskDefinitionMapper.queryByCode(taskCode); |
|
|
|
|
if (taskDefinition == null || projectCode != taskDefinition.getProjectCode()) { |
|
|
|
|
putMsg(result, Status.TASK_DEFINE_NOT_EXIST, taskCode); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (taskDefinition.getFlag() == Flag.YES) { |
|
|
|
|
putMsg(result, Status.TASK_DEFINE_STATE_ONLINE, taskCode); |
|
|
|
|
return result; |
|
|
|
@ -329,7 +333,7 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
TaskDefinition taskDefinition = taskDefinitionMapper.queryByCode(taskCode); |
|
|
|
|
if (taskDefinition == null) { |
|
|
|
|
if (taskDefinition == null || projectCode != taskDefinition.getProjectCode()) { |
|
|
|
|
putMsg(result, Status.TASK_DEFINE_NOT_EXIST, taskCode); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
@ -364,7 +368,7 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
|
|
|
|
|
} |
|
|
|
|
PageInfo<TaskDefinitionLog> pageInfo = new PageInfo<>(pageNo, pageSize); |
|
|
|
|
Page<TaskDefinitionLog> page = new Page<>(pageNo, pageSize); |
|
|
|
|
IPage<TaskDefinitionLog> taskDefinitionVersionsPaging = taskDefinitionLogMapper.queryTaskDefinitionVersionsPaging(page, taskCode); |
|
|
|
|
IPage<TaskDefinitionLog> taskDefinitionVersionsPaging = taskDefinitionLogMapper.queryTaskDefinitionVersionsPaging(page, taskCode, projectCode); |
|
|
|
|
List<TaskDefinitionLog> taskDefinitionLogs = taskDefinitionVersionsPaging.getRecords(); |
|
|
|
|
|
|
|
|
|
pageInfo.setTotalList(taskDefinitionLogs); |
|
|
|
@ -411,7 +415,7 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TaskDefinition taskDefinition = taskDefinitionMapper.queryByCode(taskCode); |
|
|
|
|
if (taskDefinition == null) { |
|
|
|
|
if (taskDefinition == null || projectCode != taskDefinition.getProjectCode()) { |
|
|
|
|
putMsg(result, Status.TASK_DEFINE_NOT_EXIST, taskCode); |
|
|
|
|
} else { |
|
|
|
|
result.put(Constants.DATA_LIST, taskDefinition); |
|
|
|
@ -506,7 +510,7 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
TaskDefinition taskDefinition = taskDefinitionMapper.queryByCode(code); |
|
|
|
|
if (taskDefinition == null) { |
|
|
|
|
if (taskDefinition == null || projectCode != taskDefinition.getProjectCode()) { |
|
|
|
|
putMsg(result, Status.TASK_DEFINE_NOT_EXIST, code); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|