package com.dcit.danger.service.impl;

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

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

import com.dcit.danger.dao.EnterpriseGoodsInfoMapper;
import com.dcit.danger.model.EnterpriseGoodsInfo;
import com.dcit.danger.model.EnterpriseGoodsInfoExample;
import com.dcit.danger.service.EnterpriseGoodsService;

@Service
public class EnterpriseGoodsServiceImpl implements EnterpriseGoodsService {
	
	@Autowired
	private EnterpriseGoodsInfoMapper enterpriseGoodsInfoMapper;

	@Override
	public long countByExample(EnterpriseGoodsInfoExample example) {
		// TODO Auto-generated method stub
		return enterpriseGoodsInfoMapper.countByExample(example);
	}

	@Override
	public List<Map<Object, Object>> countByEnterprise() {
		return enterpriseGoodsInfoMapper.countByEnterprise();
	}

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

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

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

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

	@Override
	public List<EnterpriseGoodsInfo> selectByExample(EnterpriseGoodsInfoExample example) {
		// TODO Auto-generated method stub
		return enterpriseGoodsInfoMapper.selectByExample(example);
	}

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

	@Override
	public int updateByExampleSelective(EnterpriseGoodsInfo record, EnterpriseGoodsInfoExample example) {
		// TODO Auto-generated method stub
		return enterpriseGoodsInfoMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(EnterpriseGoodsInfo record, EnterpriseGoodsInfoExample example) {
		// TODO Auto-generated method stub
		return enterpriseGoodsInfoMapper.updateByExample(record, example);
	}

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

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

}
