admin
2021-08-27 8fee151ffae0c3818694b7318583814bf92663e2
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
package com.yeshi.buwan.service.imp;
 
import java.io.Serializable;
import java.util.List;
 
import javax.annotation.Resource;
 
import org.springframework.stereotype.Service;
 
import com.yeshi.buwan.videos.acFun.AcFunType;
import com.yeshi.buwan.dao.AcFunTypeDao;
 
@Service
public class AcFunTypeService {
 
    @Resource
    private AcFunTypeDao dao;
    
    public AcFunType getAcFunTypeByCode(String vcode) {
        List<AcFunType> list = dao.list("from AcFunType t where t.code = ? ", new Serializable[]{vcode});
        if(list.size()>0){
            return list.get(0);
        }
        return null;
    }
 
    
    public List<AcFunType> getAcFunTypeList() {
        return dao.list("from AcFunType");
    }
 
}