|
|
@ -234,6 +234,25 @@ public class TaskController extends JeecgController<Task, ITaskService> { |
|
|
|
if (task == null) { |
|
|
|
if (task == null) { |
|
|
|
return Result.error("未找到对应数据"); |
|
|
|
return Result.error("未找到对应数据"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(task.getUpperId())) { |
|
|
|
|
|
|
|
Task taskUpper = taskService.getById(task.getUpperId()); |
|
|
|
|
|
|
|
if (ObjectUtils.isNotEmpty(taskUpper)) { |
|
|
|
|
|
|
|
task.setUpperTaskName(taskUpper.getTaskName()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (task.getTaskFile()!=null&& !task.getTaskFile().equals("")){ |
|
|
|
|
|
|
|
task.setContentType("file"); |
|
|
|
|
|
|
|
}else if(task.getTaskPic()!=null&& !task.getTaskPic().equals("")){ |
|
|
|
|
|
|
|
task.setContentType("image"); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
task.setContentType("text"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
String managerUsers = task.getManagerUsers(); |
|
|
|
|
|
|
|
if (managerUsers!=null&&!managerUsers.equals("")) { |
|
|
|
|
|
|
|
SysUser byId = iSysUserService.getById(managerUsers); |
|
|
|
|
|
|
|
if (byId!=null) |
|
|
|
|
|
|
|
task.setHeadpic(byId.getAvatar()); |
|
|
|
|
|
|
|
} |
|
|
|
return Result.OK(task); |
|
|
|
return Result.OK(task); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|