VideoMapper.java

    /**
     * 根据评分和标题模糊查询
     * @param point
     * @param title
     * @return
     */
    List<Video> selectByPointAndTitleLike(@Param("point") double point,@Param("title") String title);

VideoMapper.xml

    <select id="selectByPointAndTitleLike" resultType="net.cybclass.online.domain.Video">
select * from video where point=#{point} and title like concat('%',#{title},'%')
    </select>

 

相关文章:

  • 2021-07-12
  • 2021-08-09
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-09-23
猜你喜欢
  • 2021-09-12
  • 2021-08-06
  • 2021-09-02
  • 2021-08-04
相关资源
相似解决方案