码迷,mamicode.com
首页 > 其他好文 > 详细

Mybatis模糊查询

时间:2020-07-08 23:27:39      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:select   param   根据   res   @param   like   ndt   ret   ring   

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>

 

Mybatis模糊查询

标签:select   param   根据   res   @param   like   ndt   ret   ring   

原文地址:https://www.cnblogs.com/chenyanbin/p/13269479.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!