| | |
| | | package com.yeshi.fanli.service.inter.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.taobao.TLJFreeBuyGoods;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | |
|
| | | /**
|
| | | * 红包免单商品
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface TLJFreeBuyGoodsService {
|
| | |
|
| | | /**
|
| | | * 添加自购立减商品
|
| | | * |
| | | * @param goods
|
| | | */
|
| | | public void addGoods(TLJFreeBuyGoods goods);
|
| | |
|
| | | /**
|
| | | * 根据日期查找
|
| | | * |
| | | * @param day
|
| | | * @return
|
| | | */
|
| | | public List<TLJFreeBuyGoods> listByDay(String day);
|
| | |
|
| | | /**
|
| | | * 根据appkey与日期查找
|
| | | * |
| | | * @param appKey
|
| | | * @param day
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | public List<TLJFreeBuyGoods> listByDay(String day, int count);
|
| | |
|
| | | /**
|
| | | * 根据主键删除
|
| | | * |
| | | * @param id
|
| | | */
|
| | | public void deleteById(String id);
|
| | |
|
| | |
|
| | | /**
|
| | | * 根据商品id删除
|
| | | * |
| | | * @param goodsId
|
| | | */
|
| | | public void deleteByGoodsId(Long goodsId);
|
| | | |
| | | /**
|
| | | * 根据商品ID和日期查询
|
| | | * |
| | | * @param auctionId
|
| | | * @param day
|
| | | * @return
|
| | | */
|
| | | public TLJFreeBuyGoods selectByAuctionIdAndDay(Long auctionId, String day);
|
| | |
|
| | | /**
|
| | | * 预选商品
|
| | | * @param page
|
| | | * @return
|
| | | */
|
| | | public List<TaoBaoGoodsBrief> listPreGoods(String key, int page);
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.taobao.TLJFreeBuyGoods; |
| | | import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; |
| | | |
| | | /** |
| | | * 红包免单商品 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface TLJFreeBuyGoodsService { |
| | | |
| | | /** |
| | | * 添加自购立减商品 |
| | | * |
| | | * @param goods |
| | | */ |
| | | public void addGoods(TLJFreeBuyGoods goods); |
| | | |
| | | /** |
| | | * 根据日期查找 |
| | | * |
| | | * @param day |
| | | * @return |
| | | */ |
| | | public List<TLJFreeBuyGoods> listByDay(String day); |
| | | |
| | | /** |
| | | * 根据appkey与日期查找 |
| | | * |
| | | * @param appKey |
| | | * @param day |
| | | * @param count |
| | | * @return |
| | | */ |
| | | public List<TLJFreeBuyGoods> listByDay(String day, int count); |
| | | |
| | | /** |
| | | * 根据主键删除 |
| | | * |
| | | * @param id |
| | | */ |
| | | public void deleteById(String id); |
| | | |
| | | |
| | | /** |
| | | * 根据商品id删除 |
| | | * |
| | | * @param goodsId |
| | | */ |
| | | public void deleteByGoodsId(String goodsId); |
| | | |
| | | /** |
| | | * 根据商品ID和日期查询 |
| | | * |
| | | * @param auctionId |
| | | * @param day |
| | | * @return |
| | | */ |
| | | public TLJFreeBuyGoods selectByAuctionIdAndDay(String auctionId, String day); |
| | | |
| | | /** |
| | | * 预选商品 |
| | | * @param page |
| | | * @return |
| | | */ |
| | | public List<TaoBaoGoodsBrief> listPreGoods(String key, int page); |
| | | |
| | | } |