IPunchInManager.java 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package com.punchsettle.server.service.manager;
  2. import java.util.List;
  3. import com.punchsettle.server.atomic.entity.PiTask;
  4. import com.punchsettle.server.atomic.entity.PiTaskHistory;
  5. import com.punchsettle.server.pojo.punchIn.PiTaskHistoryStatVO;
  6. import com.punchsettle.server.pojo.punchIn.PiTaskRequest;
  7. import com.punchsettle.server.pojo.punchIn.PiTaskSimpleVO;
  8. import com.punchsettle.server.pojo.punchIn.PiTaskStatQuery;
  9. import com.punchsettle.server.pojo.punchIn.PiTaskStatVO;
  10. import com.punchsettle.server.pojo.punchIn.PiTaskToDoVO;
  11. import com.punchsettle.server.pojo.punchIn.PiTaskVO;
  12. import com.punchsettle.server.pojo.punchIn.PunchInRequest;
  13. /**
  14. * @author tyuio
  15. * @version 1.0.0
  16. * @description 打卡结算任务 服务类
  17. * @date 2024/11/25 15:00
  18. */
  19. public interface IPunchInManager {
  20. /**
  21. * 查询待办打卡任务列表
  22. * @param currentUserId 当前用户id
  23. * @return
  24. */
  25. List<PiTaskToDoVO> queryToDoList(Long currentUserId);
  26. /**
  27. * 查询打卡任务及其打卡记录
  28. * @return
  29. */
  30. List<PiTaskSimpleVO> queryTaskList();
  31. /**
  32. * 根据ID获取打卡任务
  33. */
  34. PiTaskVO queryTask(Long id);
  35. /**
  36. * 保存打卡任务
  37. * @param request 打卡任务
  38. */
  39. void saveTask(PiTaskRequest request);
  40. /**
  41. * 根据主键删除打卡任务
  42. * @param id 主键
  43. */
  44. void deleteTask(Long id);
  45. /**
  46. * 打卡
  47. * @param request
  48. */
  49. void doPunchIn(PunchInRequest request);
  50. /**
  51. * 归档打卡任务
  52. * @param punchInId
  53. */
  54. void archiveTask(Long punchInId);
  55. /**
  56. * 撤销误打卡
  57. * @param id 打卡任务
  58. */
  59. void revokePunchIn(Long id);
  60. /**
  61. * 查询统计数据
  62. * @param query
  63. * @return
  64. */
  65. PiTaskStatVO queryStat(PiTaskStatQuery query);
  66. /**
  67. * 查询打卡历史
  68. */
  69. List<PiTaskHistoryStatVO> queryPunchInHistory(String punchInDate);
  70. /**
  71. * 从缓存获取指定用户的任务列表
  72. * @param userId
  73. * @return
  74. */
  75. List<PiTask> getTaskListInCache(Long userId);
  76. /**
  77. * 从缓存获取指定用户的打卡记录
  78. * @param userId 用户ID
  79. * @param punchInDate 打卡日期
  80. * @return
  81. */
  82. List<PiTaskHistory> getTaskHistoryListInCache(Long userId, String punchInDate);
  83. }