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 list = dao.list("from AcFunType t where t.code = ? ", new Serializable[]{vcode}); if(list.size()>0){ return list.get(0); } return null; } public List getAcFunTypeList() { return dao.list("from AcFunType"); } }