package com.moke.wp.wx_weimai.mapper; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.moke.wp.wx_weimai.entity.Movie; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface MovieMapper extends BaseMapper { @Select("") List getList(String addr); @Select("select * from t_movie where showst!=3 order by rt asc,wish desc") List getWait(); @Select("select * from t_movie where showst!=3 order by wish desc limit 0,8") List getMoviePop(); @Select("select * from t_movie where id=#{id}") Movie getMovieById(Integer id); @Update("update t_movie set wish = wish+#{num} where id=#{movieId}") void upWish(Integer movieId,Integer num); @Select("select * from t_movie where nm=#{movieName}") Movie getMovieByName(String movieName); @Select("select * from t_movie") List selectAll(); @Select("") List getMovieByCinemaIdAndDay(Integer cinemaId); @Select("") List getMovies(String keyword); @Select("select * from t_movie where id!=#{movieId} and showst!=1 and cat like '%${cat}%' limit #{limit}") List getLikeMovieList(Integer movieId, String cat,Integer limit); @Select("select * from t_movie where showst=3") List getAllMovie(); }