package com.fzm.mall.server.front.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fzm.mall.server.front.order.model.GoodsCoupon;
import com.fzm.mall.server.front.order.model.GoodsPromotion;
import com.fzm.mall.server.front.order.mapper.GoodsPromotionMapper;
import com.fzm.mall.server.front.order.service.IGoodsPromotionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fzm
 * @since 2021-04-14
 */
@Service
public class GoodsPromotionServiceImpl extends ServiceImpl<GoodsPromotionMapper, GoodsPromotion> implements IGoodsPromotionService {
    public GoodsPromotion getByOid(String oid){
        QueryWrapper qw=new QueryWrapper();
        qw.eq("oid",oid);
        return getOne(qw);
    }
}
