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");
|
}
|
|
}
|