|
|
|
@ -447,7 +447,8 @@ public class TaskSubTimeService implements ITaskSubTimeService { |
|
|
|
* @return 任务列表 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<TaskVo.KanBan> getKanbanTake(Long currentUserId, Long projectId, Long roleId, Integer type, Integer page, Integer pageSize) throws Exception { |
|
|
|
public List<TaskVo.KanBan> getKanbanTake(Long currentUserId, Long projectId, Long roleId, Integer type, |
|
|
|
Integer page, Integer pageSize, Integer orderType, Integer order) throws Exception { |
|
|
|
//返回的list
|
|
|
|
List<TaskVo.KanBan> kanBans = new ArrayList<>(); |
|
|
|
//查找此用户在任务下的成员
|
|
|
|
@ -457,7 +458,7 @@ public class TaskSubTimeService implements ITaskSubTimeService { |
|
|
|
} |
|
|
|
|
|
|
|
//TODO 暂时确定三个状态
|
|
|
|
Map<Integer, String> typeMap = new HashMap<>(); |
|
|
|
Map<Integer, String> typeMap = new HashMap<>(0); |
|
|
|
typeMap.put(0, "未开始"); |
|
|
|
typeMap.put(1, "进行中"); |
|
|
|
typeMap.put(2, "已完成"); |
|
|
|
@ -470,10 +471,10 @@ public class TaskSubTimeService implements ITaskSubTimeService { |
|
|
|
kanBan.setTypeName(entry.getValue()); |
|
|
|
PageHelper.startPage(page, pageSize); |
|
|
|
if (kanBan.getCode() <= 2) { |
|
|
|
List<TaskVo.KanBanTask> kanBanTaskList = taskSubTimeDao.getKanbanTake(currentUserId,projectId, roleId, kanBan.getCode(), member.getId()); |
|
|
|
List<TaskVo.KanBanTask> kanBanTaskList = taskSubTimeDao.getKanbanTake(currentUserId,projectId, roleId, kanBan.getCode(), member.getId(),orderType,order); |
|
|
|
kanBan.setTaskList(new PageInfo<>(kanBanTaskList)); |
|
|
|
} else { |
|
|
|
List<TaskVo.KanBanTask> kanBanTaskList = taskSubTimeDao.getKanbanTakeByType(currentUserId,projectId, roleId, kanBan.getCode()); |
|
|
|
List<TaskVo.KanBanTask> kanBanTaskList = taskSubTimeDao.getKanbanTakeByType(currentUserId,projectId, roleId, kanBan.getCode(),orderType,order); |
|
|
|
kanBan.setTaskList(new PageInfo<>(kanBanTaskList)); |
|
|
|
} |
|
|
|
kanBans.add(kanBan); |
|
|
|
@ -484,10 +485,10 @@ public class TaskSubTimeService implements ITaskSubTimeService { |
|
|
|
kanBan.setTypeName(typeMap.get(type)); |
|
|
|
PageHelper.startPage(page, pageSize); |
|
|
|
if (kanBan.getCode() <= 2) { |
|
|
|
List<TaskVo.KanBanTask> kanBanTaskList = taskSubTimeDao.getKanbanTake(currentUserId,projectId, roleId, type, member.getId()); |
|
|
|
List<TaskVo.KanBanTask> kanBanTaskList = taskSubTimeDao.getKanbanTake(currentUserId,projectId, roleId, type, member.getId(),orderType,order); |
|
|
|
kanBan.setTaskList(new PageInfo<>(kanBanTaskList)); |
|
|
|
} else { |
|
|
|
List<TaskVo.KanBanTask> kanBanTaskList = taskSubTimeDao.getKanbanTakeByType(currentUserId,projectId, roleId, type); |
|
|
|
List<TaskVo.KanBanTask> kanBanTaskList = taskSubTimeDao.getKanbanTakeByType(currentUserId,projectId, roleId, type,orderType,order); |
|
|
|
kanBan.setTaskList(new PageInfo<>(kanBanTaskList)); |
|
|
|
} |
|
|
|
kanBans.add(kanBan); |
|
|
|
@ -499,8 +500,8 @@ public class TaskSubTimeService implements ITaskSubTimeService { |
|
|
|
/** |
|
|
|
* 修改看板上的任务状态 |
|
|
|
* |
|
|
|
* @param currentUserId |
|
|
|
* @param changeKanbanTask |
|
|
|
* @param currentUserId userId |
|
|
|
* @param changeKanbanTask 任务状态 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void changeKanbanTake(Long currentUserId, TaskDto.ChangeKanbanTask changeKanbanTask) throws Exception { |
|
|
|
|