admin
2020-09-12 2778cf2a16823f9b1153a0549b47f7b503176a17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.yeshi.buwan.dao;
 
import com.yeshi.buwan.dao.base.BaseDao;
import org.springframework.stereotype.Repository;
 
import com.yeshi.buwan.domain.VideoInfo;
 
import java.io.Serializable;
import java.util.List;
 
@Repository
public class VideoInfoDao extends BaseDao<VideoInfo> {
 
    /**
     * 根据名字查询
     *
     * @param name
     * @param start
     * @param count
     * @return
     */
    public List<VideoInfo> listByName(String name, int start, int count) {
        return list("from VideoInfo vi where vi.name=?", start, count, new Serializable[]{name});
    }
 
}