|
|
@ -1254,14 +1254,19 @@ public class TaskDeliverService implements ITaskDeliverService { |
|
|
|
|
|
|
|
//查找任务详情id
|
|
|
|
Long taskDetailId = null; |
|
|
|
//查找项目id
|
|
|
|
Long projectId = null; |
|
|
|
|
|
|
|
ProTaskDetail taskDetail = taskDetailDao.selectByPrimaryKey(param.getTaskId()); |
|
|
|
if(ObjectUtil.isNotNull(taskDetail)){ |
|
|
|
taskDetailId = taskDetail.getId(); |
|
|
|
projectId = taskDetail.getProjectId(); |
|
|
|
}else { |
|
|
|
ProTaskSubTime proTaskSubTime = taskSubTimeDao.selectByPrimaryKey(param.getTaskId()); |
|
|
|
if(ObjectUtil.isNotNull(proTaskSubTime)){ |
|
|
|
ProTaskDetail task = taskDetailDao.selectByPrimaryKey(proTaskSubTime.getTaskDetailId()); |
|
|
|
if(ObjectUtil.isNotNull(task)){ |
|
|
|
projectId = task.getId(); |
|
|
|
taskDetailId = task.getId(); |
|
|
|
} |
|
|
|
} |
|
|
@ -1288,7 +1293,7 @@ public class TaskDeliverService implements ITaskDeliverService { |
|
|
|
taskDeliverDao.insertSelective(proTaskDeliver); |
|
|
|
} |
|
|
|
|
|
|
|
normalTask = taskDetailService.getTaskInfoByTaskId(userId, taskDetail.getProjectId(), param.getTaskId(), null); |
|
|
|
normalTask = taskDetailService.getTaskInfoByTaskId(userId, projectId, param.getTaskId(), null); |
|
|
|
return normalTask; |
|
|
|
} |
|
|
|
|
|
|
|