package com.dcit.authority.service.impl;

import java.util.List;

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

import com.dcit.authority.dao.ProvinceMapper;
import com.dcit.authority.model.Province;
import com.dcit.authority.model.ProvinceExample;
import com.dcit.authority.service.ProvinceService;


@Service
public class ProvinceServiceImpl implements ProvinceService {

	@Autowired
	private ProvinceMapper provinceMapper;
	
	@Override
	public int countByExample(ProvinceExample example) {
		// TODO Auto-generated method stub
		return provinceMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ProvinceExample example) {
		// TODO Auto-generated method stub
		return provinceMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return provinceMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Province record) {
		// TODO Auto-generated method stub
		return provinceMapper.insert(record);
	}

	@Override
	public int insertSelective(Province record) {
		// TODO Auto-generated method stub
		return provinceMapper.insertSelective(record);
	}

	@Override
	public List<Province> selectByExample(ProvinceExample example) {
		// TODO Auto-generated method stub
		return provinceMapper.selectByExample(example);
	}

	@Override
	public Province selectByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return provinceMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Province record, ProvinceExample example) {
		// TODO Auto-generated method stub
		return provinceMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Province record, ProvinceExample example) {
		// TODO Auto-generated method stub
		return provinceMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Province record) {
		// TODO Auto-generated method stub
		return provinceMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Province record) {
		// TODO Auto-generated method stub
		return provinceMapper.updateByPrimaryKey(record);
	}

}
