shikeying
2022-09-27 26f5dd8ef80e5671cda8fc0e6c0d0298c4e678ff
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
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.iplatform.recvideo.service;
 
import com.iplatform.model.po.Rc_video_batch;
import com.iplatform.model.po.Rc_video_t2;
import com.walker.db.page.GenericPager;
import com.walker.jdbc.service.BaseServiceImpl;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class VideoShowServiceImpl extends BaseServiceImpl {
 
    /**
     * 返回部分原始视频集合,用于选择相似视频使用。
     * @return
     */
    public GenericPager<Rc_video_batch> queryPageVideoBatchList(){
        return this.selectSplit("select * from rc_video_batch", new Object[]{}, 1, 128, new Rc_video_batch());
    }
 
    /**
     * 返回给定原始视频,相似视频集合。
     * @param srcVideoId
     * @return
     */
    public List<Rc_video_t2> querySimilarVideoList(String srcVideoId){
        return this.select(new Rc_video_t2(), "where src_video_id=?", new Object[]{srcVideoId});
    }
 
    /**
     * 根据原始视频ID,查询该视频信息。
     * @param srcVideoId
     * @return
     */
    public Rc_video_batch queryOneVideoInfo(String srcVideoId){
        return this.get(new Rc_video_batch(), "where src_video_id=?", new Object[]{srcVideoId});
    }
}