package com.iamberry.wechat.service.customized;

import com.iamberry.wechat.core.entity.customized.CustomizedPattern;
import com.iamberry.wechat.face.customized.CustomizedPatternService;
import com.iamberry.wechat.service.mapper.CustomizedPatternMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  牙刷定制-纹理表接口
 * @author w
 * @Date 2018-05-25
 */
@Service
public class CustomizedPatternServiceImpl  implements CustomizedPatternService {
    @Autowired
    private CustomizedPatternMapper customizedPatternMapper;
    /**
     * 获取集合
     * @param  customizedPattern
     * @return List
     */
    @Override
    public List<CustomizedPattern> getCustomizedPatternList(CustomizedPattern  customizedPattern){
        return  customizedPatternMapper.getCustomizedPatternList(customizedPattern);
    }
    /**
     * 查询单条数据
     * @param  id
     * @return  customizedPattern
     */
    @Override
    public  CustomizedPattern  getCustomizedPatternById(Integer  id){
        return  customizedPatternMapper.getCustomizedPatternById(id);
    }
    /**
     * 增加数据
     * @param  customizedPattern
     * @return Integer
     */
    @Override
    public  Integer  save(CustomizedPattern  customizedPattern){
        return  customizedPatternMapper.save(customizedPattern);
    }
    /**
     * 修改数据
     * @param  customizedPattern
     * @return Integer
     */
    @Override
    public  Integer  update(CustomizedPattern  customizedPattern){
        return  customizedPatternMapper.update(customizedPattern);
    }
}