|
|
|
@ -26,6 +26,8 @@ import org.jeecg.modules.modulex.entity.Modulex; |
|
|
|
|
import org.jeecg.modules.modulex.service.IModulexService; |
|
|
|
|
import org.jeecg.modules.projectx.entity.Projectx; |
|
|
|
|
import org.jeecg.modules.projectx.service.IProjectxService; |
|
|
|
|
import org.jeecg.modules.system.entity.SysUser; |
|
|
|
|
import org.jeecg.modules.system.service.ISysUserService; |
|
|
|
|
import org.jeecg.modules.task.entity.Task; |
|
|
|
|
import org.jeecg.modules.task.service.ITaskService; |
|
|
|
|
import org.jeecg.modules.taskType.entity.TaskType; |
|
|
|
@ -40,6 +42,7 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
import java.util.Arrays; |
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Optional; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -70,7 +73,8 @@ public class TaskController extends JeecgController<Task, ITaskService> { |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private IModulexService iModulexService; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private ISysUserService iSysUserService; |
|
|
|
|
@Resource |
|
|
|
|
private IRulexService iRulexService; |
|
|
|
|
|
|
|
|
@ -124,6 +128,20 @@ public class TaskController extends JeecgController<Task, ITaskService> { |
|
|
|
|
e.setUpperTaskName(taskUpper.getTaskName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (e.getTaskFile()!=null&& !e.getTaskFile().equals("")){ |
|
|
|
|
e.setContentType("file"); |
|
|
|
|
}else if(e.getTaskPic()!=null&& !e.getTaskPic().equals("")){ |
|
|
|
|
e.setContentType("image"); |
|
|
|
|
}else{ |
|
|
|
|
e.setContentType("text"); |
|
|
|
|
} |
|
|
|
|
String managerUsers = e.getManagerUsers(); |
|
|
|
|
if (managerUsers!=null&&!managerUsers.equals("")) { |
|
|
|
|
SysUser byId = iSysUserService.getById(managerUsers); |
|
|
|
|
if (byId!=null) |
|
|
|
|
e.setHeadpic(byId.getAvatar()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|