package com.qmth.qrzk.repository.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.qmth.qrzk.dao.ISuffixDao;
import com.qmth.qrzk.repository.service.query.SuffixParams;
import com.qmth.qrzk.repository.user.model.Suffix;
import com.qmth.qrzk.repository.user.service.ISuffixService;

@Service("suffixServiceImpl")
public class SuffixServiceImpl implements ISuffixService{

	@Autowired
	@Qualifier("suffixDaoImpl")
	private ISuffixDao suffixDao;

	@Override
	public List<Suffix> getAllSuffix() {
		// TODO Auto-generated method stub
		return suffixDao.getAllSuffix();
	}

	@Override
	public List<Suffix> findByName(String suffixName) {
		// TODO Auto-generated method stub
		return suffixDao.findByName(suffixName);
	}

	@Override
	public Suffix findById(int id) {
		// TODO Auto-generated method stub
		return suffixDao.findById(id);
	}

	@Override
	public int addSuffix(String suffixName) {
		// TODO Auto-generated method stub
		return suffixDao.addSuffix(suffixName);
	}

	@Override
	public int delSuffix(int id) {
		// TODO Auto-generated method stub
		return suffixDao.delSuffix(id);
	}

	@Override
	public int updateSuffix(Suffix suffix) {
		// TODO Auto-generated method stub
		return suffixDao.updateSuffix(suffix);
	}

	@Override
	public List<Suffix> querySuffix(SuffixParams params) {
		// TODO Auto-generated method stub
		return suffixDao.querySuffix(params);
	}

	@Override
	public int querySuffixCount(SuffixParams params) {
		// TODO Auto-generated method stub
		return suffixDao.querySuffixCount(params);
	} 
}
