LdTaskExecutionLogMapper.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package com.ruoyi.robot.mapper;
  2. import java.util.List;
  3. import com.ruoyi.robot.domain.LdTaskExecutionLog;
  4. import org.apache.ibatis.annotations.Param;
  5. /**
  6. * 任务执行记录Mapper接口
  7. *
  8. * @author ruoyi
  9. */
  10. public interface LdTaskExecutionLogMapper
  11. {
  12. /**
  13. * 查询执行记录
  14. *
  15. * @param id 执行记录主键
  16. * @return 执行记录
  17. */
  18. public LdTaskExecutionLog selectLdTaskExecutionLogById(Long id);
  19. /**
  20. * 查询执行记录列表
  21. *
  22. * @param log 执行记录
  23. * @return 执行记录集合
  24. */
  25. public List<LdTaskExecutionLog> selectLdTaskExecutionLogList(LdTaskExecutionLog log);
  26. /**
  27. * 根据任务ID查询执行记录
  28. *
  29. * @param taskId 任务ID
  30. * @return 执行记录列表
  31. */
  32. public List<LdTaskExecutionLog> selectLdTaskExecutionLogByTaskId(Long taskId);
  33. /**
  34. * 查询某设备今日的执行记录
  35. *
  36. * @param deviceId 设备ID
  37. * @param executeDate 执行日期
  38. * @return 执行记录列表
  39. */
  40. public List<LdTaskExecutionLog> selectTodayExecutionLogsByDeviceId(@Param("deviceId") String deviceId, @Param("executeDate") String executeDate);
  41. /**
  42. * 新增执行记录
  43. *
  44. * @param log 执行记录
  45. * @return 结果
  46. */
  47. public int insertLdTaskExecutionLog(LdTaskExecutionLog log);
  48. /**
  49. * 修改执行记录
  50. *
  51. * @param log 执行记录
  52. * @return 结果
  53. */
  54. public int updateLdTaskExecutionLog(LdTaskExecutionLog log);
  55. /**
  56. * 删除执行记录
  57. *
  58. * @param id 执行记录主键
  59. * @return 结果
  60. */
  61. public int deleteLdTaskExecutionLogById(Long id);
  62. /**
  63. * 批量删除执行记录
  64. *
  65. * @param ids 需要删除的数据主键集合
  66. * @return 结果
  67. */
  68. public int deleteLdTaskExecutionLogByIds(Long[] ids);
  69. /**
  70. * 根据任务ID删除执行记录
  71. *
  72. * @param taskId 任务ID
  73. * @return 结果
  74. */
  75. public int deleteLdTaskExecutionLogByTaskId(Long taskId);
  76. }