package com.yeshi.fanli.service.inter.taobao;
|
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.taobao.TLJBuyGoods;
|
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
import com.yeshi.fanli.entity.taobao.TaoKeAppInfo;
|
|
/**
|
* 自购立减
|
*
|
* @author Administrator
|
*
|
*/
|
public interface TLJBuyGoodsService {
|
|
/**
|
* 添加自购立减商品
|
*
|
* @param goods
|
*/
|
public void addTLJBuyGoods(TLJBuyGoods goods, TaoKeAppInfo taoKeAppInfo);
|
|
/**
|
* 添加自购立减商品
|
*
|
* @param goods
|
* @param taoKeAppInfo
|
*/
|
public void addTLJBuyGoods(TLJBuyGoods goods);
|
|
/**
|
* 根据日期查找
|
*
|
* @param day
|
* @return
|
*/
|
public List<TLJBuyGoods> listByDay(String day);
|
|
/**
|
* 根据appkey与日期查找
|
*
|
* @param appKey
|
* @param day
|
* @param count
|
* @return
|
*/
|
public List<TLJBuyGoods> listByDay(String appKey, String day, int count);
|
|
/**
|
* 根据主键删除
|
*
|
* @param id
|
*/
|
public void deleteById(String id);
|
|
/**
|
* 获取备选商品
|
*
|
* @return
|
*/
|
public List<TaoBaoGoodsBrief> listPreGoods(int page);
|
|
/**
|
* 根据商品id删除
|
*
|
* @param goodsId
|
*/
|
public void deleteByGoodsId(Long goodsId);
|
|
/**
|
* 验证是否可以创建淘礼金
|
*
|
* @param auctionId
|
* @return
|
*/
|
public boolean verifyCanCreateTLJ(Long auctionId, TaoKeAppInfo app);
|
|
/**
|
* 更新商品
|
*
|
* @param goods
|
*/
|
public void updateGoods(TaoBaoGoodsBrief goods);
|
|
/**
|
* 减去剩余红包数量
|
*
|
* @param auctionId
|
* @param day
|
* @param count
|
*/
|
public void subHongBaoLeftCount(Long auctionId, String day, int count);
|
|
/**
|
* 根据商品ID和日期查询
|
*
|
* @param auctionId
|
* @param day
|
* @return
|
*/
|
public TLJBuyGoods selectByAuctionIdAndDay(Long auctionId, String day);
|
|
/*
|
* 删除商品
|
*
|
*/
|
public void removeGoods(Long auctionId);
|
|
}
|