BaseSafetyToolMapper.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package com.railway.business.safetool.mapper;
  2. import com.github.pagehelper.Page;
  3. import com.railway.business.safetool.domain.BaseSafetyTool;
  4. import java.util.List;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.springframework.stereotype.Repository;
  8. /**
  9. * 安全工具-基础数据
  10. * @author wuhonghao
  11. * @date 2021/12/01
  12. */
  13. @Mapper
  14. @Repository
  15. public interface BaseSafetyToolMapper {
  16. /**
  17. * 新增
  18. */
  19. int insert(BaseSafetyTool baseSafetyTool);
  20. /**
  21. * 删除
  22. */
  23. int delete(@Param("toolId") Long toolId);
  24. /**
  25. * 更新
  26. */
  27. int update(BaseSafetyTool baseSafetyTool);
  28. /**
  29. * 获取单个
  30. */
  31. BaseSafetyTool getInfo(@Param("toolId") Long toolId);
  32. /**
  33. * 获取单个
  34. */
  35. BaseSafetyTool getInfoByQcode(@Param("qcode") String qcode);
  36. /**
  37. * 查询列表
  38. */
  39. Page<BaseSafetyTool> getList(BaseSafetyTool baseSafetyTool);
  40. /**
  41. * 查询列表
  42. */
  43. List<BaseSafetyTool> getListByIds(Long [] ids);
  44. /**
  45. * 查询列表
  46. */
  47. List<BaseSafetyTool> listByExperimentId(Long experimentId);
  48. /**
  49. * 查询列表
  50. */
  51. List<BaseSafetyTool> listByScheduledId(Long scheduledId);
  52. }