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.CityMapper;
import com.dcit.authority.model.City;
import com.dcit.authority.model.CityExample;
import com.dcit.authority.service.CityService;


@Service
public class CityServiceImpl implements CityService{

	@Autowired
	private CityMapper cityMapper;
	
	@Override
	public int countByExample(CityExample example) {
		// TODO Auto-generated method stub
		return cityMapper.countByExample(example);
	}

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

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

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

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

	@Override
	public List<City> selectByExample(CityExample example) {
		// TODO Auto-generated method stub
		return cityMapper.selectByExample(example);
	}

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

	@Override
	public int updateByExampleSelective(City record, CityExample example) {
		// TODO Auto-generated method stub
		return cityMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(City record, CityExample example) {
		// TODO Auto-generated method stub
		return cityMapper.updateByExample(record, example);
	}

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

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

}
