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.SysDeptMapper;
import com.dcit.authority.model.SysDept;
import com.dcit.authority.model.SysDeptExample;
import com.dcit.authority.service.SysDeptService;

@Service
public class SysDeptServiceImpl implements SysDeptService {
	
	@Autowired
	private SysDeptMapper sysDeptMapper;

	@Override
	public int countByExample(SysDeptExample example) {
		// TODO Auto-generated method stub
		return sysDeptMapper.countByExample(example);
	}

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

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

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

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

	@Override
	public List<SysDept> selectByExample(SysDeptExample example) {
		// TODO Auto-generated method stub
		return sysDeptMapper.selectByExample(example);
	}

	@Override
	public SysDept selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return sysDeptMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SysDept record, SysDeptExample example) {
		// TODO Auto-generated method stub
		return sysDeptMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SysDept record, SysDeptExample example) {
		// TODO Auto-generated method stub
		return sysDeptMapper.updateByExample(record, example);
	}

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

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

	
}
