package com.iamberry.wechat.service.customized;

import com.iamberry.wechat.core.entity.customized.CustomizedExternalUrl;
import com.iamberry.wechat.face.customized.CustomizedExternalUrlService;
import com.iamberry.wechat.service.mapper.CustomizedExternalUrlMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  牙刷定制外部订单url表接口
 * @author w
 * @Date 2018-05-30
 */
@Service
public class CustomizedExternalUrlServiceImpl  implements CustomizedExternalUrlService {
    @Autowired
    private CustomizedExternalUrlMapper customizedExternalUrlMapper;
    /**
     * 获取集合
     * @param  customizedExternalUrl
     * @return List
     */
    @Override
    public List<CustomizedExternalUrl> getCustomizedExternalUrlList(CustomizedExternalUrl  customizedExternalUrl){
        return  customizedExternalUrlMapper.getCustomizedExternalUrlList(customizedExternalUrl);
    }
    /**
     * 查询单条数据
     * @param  id
     * @return  customizedExternalUrl
     */
    @Override
    public  CustomizedExternalUrl  getCustomizedExternalUrlById(Integer  id){
        return  customizedExternalUrlMapper.getCustomizedExternalUrlById(id);
    }
    /**
     * 增加数据
     * @param  customizedExternalUrl
     * @return Integer
     */
    @Override
    public  Integer  save(CustomizedExternalUrl  customizedExternalUrl){
        return  customizedExternalUrlMapper.save(customizedExternalUrl);
    }
    /**
     * 修改数据
     * @param  customizedExternalUrl
     * @return Integer
     */
    @Override
    public  Integer  update(CustomizedExternalUrl  customizedExternalUrl){
        return  customizedExternalUrlMapper.update(customizedExternalUrl);
    }
}