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