CompetitionMapper.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package beilv.competition.mapper;
  2. import beilv.competition.domain.Competition;
  3. import beilv.stadium.domain.Stadium;
  4. import org.apache.ibatis.annotations.Param;
  5. import java.util.List;
  6. /**
  7. * 赛事发布Mapper接口
  8. *
  9. * @author LG
  10. * @date 2024-12-31
  11. */
  12. public interface CompetitionMapper {
  13. /**
  14. * 查询赛事发布
  15. *
  16. * @param id 赛事发布主键
  17. * @return 赛事发布
  18. */
  19. public Competition selectCompetitionById(Integer id);
  20. /**
  21. * 查询赛事发布列表
  22. *
  23. * @param competition 赛事发布
  24. * @return 赛事发布集合
  25. */
  26. public List<Competition> selectCompetitionList(Competition competition);
  27. /**
  28. * 新增赛事发布
  29. *
  30. * @param competition 赛事发布
  31. * @return 结果
  32. */
  33. public int insertCompetition(Competition competition);
  34. /**
  35. * 修改赛事发布
  36. *
  37. * @param competition 赛事发布
  38. * @return 结果
  39. */
  40. public int updateCompetition(Competition competition);
  41. /**
  42. * 删除赛事发布
  43. *
  44. * @param id 赛事发布主键
  45. * @return 结果
  46. */
  47. public int deleteCompetitionById(Integer id);
  48. /**
  49. * 批量删除赛事发布
  50. *
  51. * @param ids 需要删除的数据主键集合
  52. * @return 结果
  53. */
  54. public int deleteCompetitionByIds(String[] ids);
  55. int publishCompetition(Competition competition);
  56. List<Competition> getCompetitionList();
  57. boolean selectStadumIsOpenById(String id);
  58. void updateBookARace(Stadium stadium);
  59. Competition getCompetitionInfo(@Param("orderId") String orderId);
  60. }