@Test public void test() { List<TodoDetailVO> list = todoServiceImpl.queryMyTodoJob("by"); }
public List<TodoDetailVO> queryMyTodoJob(String username) { List<UserDO> users = authService.queryUsersByRoleName(TodoDO.TodoTypeEnum.devops.getDesc()); boolean isDevops = false; List<TodoDetailDO> todoDetailList = new ArrayList<>(); for (UserDO userDO : users) { if (userDO.getUsername().equals(username)) { todoDetailList = todoDao.queryAllTodoJob(); isDevops = true; break; } } if (!isDevops) todoDetailList = todoDao.queryMyTodoJob(username); return acqTodoJob(todoDetailList); }
TodoServiceImpl implements TodoService { public List<TodoDetailVO> queryMyTodoJob(String username) { List<UserDO> users = authService.queryUsersByRoleName(TodoDO.TodoTypeEnum.devops.getDesc()); boolean isDevops = false; List<TodoDetailDO> todoDetailList = new ArrayList<>(); for (UserDO userDO : users) { if (userDO.getUsername().equals(username)) { todoDetailList = todoDao.queryAllTodoJob(); isDevops = true; break; } } if (!isDevops) todoDetailList = todoDao.queryMyTodoJob(username); return acqTodoJob(todoDetailList); } }
TodoServiceImpl implements TodoService { public List<TodoDetailVO> queryMyTodoJob(String username) { List<UserDO> users = authService.queryUsersByRoleName(TodoDO.TodoTypeEnum.devops.getDesc()); boolean isDevops = false; List<TodoDetailDO> todoDetailList = new ArrayList<>(); for (UserDO userDO : users) { if (userDO.getUsername().equals(username)) { todoDetailList = todoDao.queryAllTodoJob(); isDevops = true; break; } } if (!isDevops) todoDetailList = todoDao.queryMyTodoJob(username); return acqTodoJob(todoDetailList); }  }
TodoServiceImpl implements TodoService { public List<TodoDetailVO> queryMyTodoJob(String username) { List<UserDO> users = authService.queryUsersByRoleName(TodoDO.TodoTypeEnum.devops.getDesc()); boolean isDevops = false; List<TodoDetailDO> todoDetailList = new ArrayList<>(); for (UserDO userDO : users) { if (userDO.getUsername().equals(username)) { todoDetailList = todoDao.queryAllTodoJob(); isDevops = true; break; } } if (!isDevops) todoDetailList = todoDao.queryMyTodoJob(username); return acqTodoJob(todoDetailList); }  @Override BusinessWrapper<Boolean> saveTodoConfig(TodoConfigDO todoConfigDO); @Override BusinessWrapper<Boolean> delTodoConfig(long itemId); @Override TableVO<List<TodoConfigVO>> queryConfigPage(String queryName, long parent, int valid, int page, int length); @Override List<TodoConfigDO> queryChildrenById(long parentId); @Override TableVO<List<TodoDailyVO>> queryTodoPage(TodoDailyQueryDO queryDO, int page, int length); @Override BusinessWrapper<Boolean> saveTodoItem(TodoDailyDO dailyDO); @Override TableVO<List<TodoDailyVO>> queryTodoProcessPage(TodoDailyQueryDO queryDO, int page, int length); @Override TodoDailyVO queryTodoById(long id); @Override List<TodoGroupVO> queryTodoGroup(); @Override TodoDetailVO queryTodoDetail(long id); @Override TodoDetailVO establishTodo(long todoId); @Override BusinessWrapper<Boolean> saveKeyboxDetail(TodoKeyboxDetailDO todoKeyboxDetailDO); @Override BusinessWrapper<Boolean> saveCiUserGroupDetail(TodoCiUserGroupDetailDO ciUserGroupDetailDO); @Override BusinessWrapper<Boolean> submitTodoDetail(long id); @Override BusinessWrapper<Boolean> delKeyboxDetail(long todoKeyboxDetailId); @Override BusinessWrapper<Boolean> delCiUserGroupDetail(long todoCiUserGroupDetailId); @Override BusinessWrapper<Boolean> setTodoSystemAuth(long todoSystemAuthDetailId); List<TodoDetailVO> queryMyTodoJob(String username); @Override List<TodoDetailVO> queryMyTodoJob(); @Override BusinessWrapper<Boolean> revokeTodoDetail(long id); @Override BusinessWrapper<Boolean> processingTodoDetail(long id); @Override List<TodoDetailVO> queryCompleteTodoJob(); List<TodoDetailVO> queryCompleteTodoJob(String username); void invokeTodoDetailVO(TodoDetailVO todoDetailVO); }
TodoServiceImpl implements TodoService { public List<TodoDetailVO> queryMyTodoJob(String username) { List<UserDO> users = authService.queryUsersByRoleName(TodoDO.TodoTypeEnum.devops.getDesc()); boolean isDevops = false; List<TodoDetailDO> todoDetailList = new ArrayList<>(); for (UserDO userDO : users) { if (userDO.getUsername().equals(username)) { todoDetailList = todoDao.queryAllTodoJob(); isDevops = true; break; } } if (!isDevops) todoDetailList = todoDao.queryMyTodoJob(username); return acqTodoJob(todoDetailList); }  @Override BusinessWrapper<Boolean> saveTodoConfig(TodoConfigDO todoConfigDO); @Override BusinessWrapper<Boolean> delTodoConfig(long itemId); @Override TableVO<List<TodoConfigVO>> queryConfigPage(String queryName, long parent, int valid, int page, int length); @Override List<TodoConfigDO> queryChildrenById(long parentId); @Override TableVO<List<TodoDailyVO>> queryTodoPage(TodoDailyQueryDO queryDO, int page, int length); @Override BusinessWrapper<Boolean> saveTodoItem(TodoDailyDO dailyDO); @Override TableVO<List<TodoDailyVO>> queryTodoProcessPage(TodoDailyQueryDO queryDO, int page, int length); @Override TodoDailyVO queryTodoById(long id); @Override List<TodoGroupVO> queryTodoGroup(); @Override TodoDetailVO queryTodoDetail(long id); @Override TodoDetailVO establishTodo(long todoId); @Override BusinessWrapper<Boolean> saveKeyboxDetail(TodoKeyboxDetailDO todoKeyboxDetailDO); @Override BusinessWrapper<Boolean> saveCiUserGroupDetail(TodoCiUserGroupDetailDO ciUserGroupDetailDO); @Override BusinessWrapper<Boolean> submitTodoDetail(long id); @Override BusinessWrapper<Boolean> delKeyboxDetail(long todoKeyboxDetailId); @Override BusinessWrapper<Boolean> delCiUserGroupDetail(long todoCiUserGroupDetailId); @Override BusinessWrapper<Boolean> setTodoSystemAuth(long todoSystemAuthDetailId); List<TodoDetailVO> queryMyTodoJob(String username); @Override List<TodoDetailVO> queryMyTodoJob(); @Override BusinessWrapper<Boolean> revokeTodoDetail(long id); @Override BusinessWrapper<Boolean> processingTodoDetail(long id); @Override List<TodoDetailVO> queryCompleteTodoJob(); List<TodoDetailVO> queryCompleteTodoJob(String username); void invokeTodoDetailVO(TodoDetailVO todoDetailVO);  }