ITaskService.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. package com.wtkj.service;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.wtkj.dto.MyTaskPageDTO;
  4. import com.wtkj.dto.ProjectTaskPageDTO;
  5. import com.wtkj.entity.LineChartDataSet;
  6. import com.wtkj.entity.Task;
  7. import com.wtkj.util.Workload;
  8. import com.wtkj.vo.MyTaskStatistics;
  9. import org.springblade.core.mp.base.BaseService;
  10. import org.springblade.system.entity.Dept;
  11. import javax.servlet.http.HttpServletResponse;
  12. import java.io.IOException;
  13. import java.util.List;
  14. import java.util.Map;
  15. import java.util.Set;
  16. /**
  17. * @author Blizzard
  18. * @create at 2023-09-15 15:18
  19. * @describe
  20. */
  21. public interface ITaskService extends BaseService<Task> {
  22. boolean submit(Task task);
  23. IPage<Task> projectTaskPage(ProjectTaskPageDTO dto, IPage<Task> page);
  24. boolean uploadFile(Long taskId, String ids);
  25. boolean moveFile(Long stageId, Long folderId, String fileIds);
  26. boolean deleteFile(String ids);
  27. IPage<Task> myTaskPage(MyTaskPageDTO dto, IPage<Task> page);
  28. /**
  29. * 复用 复用
  30. */
  31. MyTaskStatistics taskStatistics(Long stageId, Integer year, Integer month);
  32. List<Task> listByUser(Long userId, Integer year, Integer month);
  33. List<Task> listByStageId(Long stageId);
  34. List<Task> getByExecute(Long deptId, String userId);
  35. /**
  36. * 用户当日待完成任务
  37. */
  38. List<Task> todayTodo(Long userId, String date);
  39. /**
  40. * 用户当日逾期任务
  41. */
  42. List<Task> todayExpire(Long userId, String date);
  43. /**
  44. * 机构下当日待完成的任务和逾期任务列表
  45. */
  46. List<Task> getByDeptAndDate(Long topDept, Long executeDept, String user, String date);
  47. /**
  48. * 用户当日待完成和逾期的任务
  49. */
  50. List<Task> getTodoAndExpireByUserId(Long userId, String date);
  51. /**
  52. * 机构下当日待完成的任务
  53. */
  54. List<Task> getTodayTodoByOrgDeptId(Long topDept, String date);
  55. List<Task> getTodoByYear(Set<Long> projectIds, String year);
  56. /**
  57. * 项目任务饼图
  58. */
  59. List<Map<String, String>> projectTaskSummary(Long stageId);
  60. /**
  61. * 项目和项目执行人
  62. */
  63. List<Task> listByUserAndProject(Long userId, Long stageId);
  64. LineChartDataSet projectTaskSituation(Long stageId);
  65. LineChartDataSet projectTaskBurnout(Long stageId);
  66. List<Task> getTodayToExpire(String date);
  67. List<Workload> exportList(String startDate, String endDate);
  68. void export(List<Workload> list, HttpServletResponse response) throws IOException;
  69. List<Task> getByCompetentUnit(Long deptId);
  70. List<Task> getByStatus(Integer status);
  71. List<Dept> taskCops(Long projectId);
  72. boolean delete(List<Long> ids);
  73. }