package org.cs.mgr.admin.service.impl;

import java.util.List;
import java.util.Map;

import org.cs.core.service.impl.BaseService;
import org.cs.mgr.admin.dao.IDCProjectDao;
import org.cs.mgr.admin.model.DCProject;
import org.cs.mgr.admin.service.IDCProjectService;
import org.cs.util.Pager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("dcprojectService")
public class DCProjectService extends BaseService<DCProject> implements IDCProjectService {

	@Autowired
	private IDCProjectDao dcprojectDao;
	
	@Override
	public Pager findDCProject(Pager page, Map<String, String> map){
	
		return this.dcprojectDao.findDCProject(page, map);
	}

	@Override
	public List<DCProject> queryAll(){
		return (List<DCProject>) this.findByHql("from DCProject", null);
	}
	
}
