package com.iamberry.wechat.service.product;

import java.util.List;

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

import com.iamberry.wechat.core.entity.product.ProductType;
import com.iamberry.wechat.face.porduct.ProductTypeService;
import com.iamberry.wechat.service.product.dao.ProductDao;
/**
 * @company	深圳爱贝源科技有限公司
 * @website www.iamberry.com
 * @author 	献
 * @tel		18271840547
 * @date	2016年9月19日
 * @explain	产品返利类型service实现类
 */
@Service
public class ProductTypeServiceImpl implements ProductTypeService {

	@Autowired
	private ProductDao productDao;
	
	@Override
	public List<ProductType> getAll() {
		// TODO Auto-generated method stub
		return productDao.getAll();
	}

	@Override
	public Integer insertProductType(ProductType productType) {
		// TODO Auto-generated method stub
		return productDao.insertProductType(productType);
	}

	@Override
	public ProductType selectOneById(Integer typeId) {
		// TODO Auto-generated method stub
		return productDao.selectOneById(typeId);
	}

	@Override
	public Integer updateProductTypeById(ProductType productType) {
		// TODO Auto-generated method stub
		return productDao.updateProductTypeById(productType);
	}

	@Override
	public Integer updateProductTypeStatusById(ProductType productType) {
		// TODO Auto-generated method stub
		return productDao.updateProductTypeStatusById(productType);
	}
}
