| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- package com.example.cinema.data;
- import com.example.cinema.vo.ResponseVO;
- import com.example.cinema.vo.ScheduleForm;
- import com.example.cinema.vo.ScheduleItem;
- import com.example.cinema.vo.ScheduleViewForm;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- import java.util.Date;
- import java.util.List;
- /**
- * @author fjj
- * @date 2019/4/11 4:18 PM
- */
- @Mapper
- public interface ScheduleMapper {
- /**
- * 插入一条排片信息
- * @param scheduleForm
- * @return
- */
- int insertOneSchedule(ScheduleForm scheduleForm);
- /**
- * 查询从startDate开始到endDate为止的某hall的排片信息
- * @param hallId
- * @param startDate
- * @param endDate
- * @return
- */
- List<ScheduleItem> selectSchedule(@Param("hallId") int hallId, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
- /**
- * 查询起止时间是否有冲突(不包括与自身的冲突)
- * @param hallId
- * @param startTime
- * @param endTime
- * @param id
- * @return
- */
- List<ScheduleItem> selectScheduleConflictByHallIdAndTime(@Param("hallId") int hallId, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("id") int id);
- /**
- * 插入观众可见排片限制
- * @return
- */
- int insertOneView(ScheduleViewForm scheduleViewForm);
- /**
- * 修改观众可见排片限制
- * @param scheduleViewForm
- * @return
- */
- int updateOneView(ScheduleViewForm scheduleViewForm);
- /**
- * 查询view的记录数,以此判断后续操作是插入还是修改
- * @return
- */
- int selectViewCount();
- /**
- * 批量删除排片信息
- * @param scheduleIdList
- * @return
- */
- int deleteScheduleBatch(List<Integer> scheduleIdList);
- /**
- * 批量查询排片信息
- * @param scheduleIdList
- * @return
- */
- List<ScheduleItem> selectScheduleBatch(List<Integer> scheduleIdList);
- /**
- * 查询排片限制信息
- * @return
- */
- int selectView();
- /**
- * 根据id修改排片信息
- * @param scheduleForm
- * @return
- */
- int updateScheduleById(ScheduleForm scheduleForm);
- /**
- * 根据id查找排片信息
- * @param id
- * @return
- */
- ScheduleItem selectScheduleById(int id);
- }
|