admin
2019-11-23 51a4ff5d777028d52a19c314a99f796334cb7b51
fanli/src/main/java/com/yeshi/fanli/service/inter/goods/TaoBaoGoodsBriefService.java
@@ -3,56 +3,10 @@
import java.math.BigDecimal;
import java.util.List;
import com.yeshi.fanli.entity.bus.recommend.RecommendSectionGoods;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
import com.yeshi.fanli.exception.ExistObjectException;
import com.yeshi.fanli.exception.NotExistObjectException;
import com.yeshi.fanli.exception.ShareGoodsException;
import com.yeshi.fanli.exception.taobao.TaobaoGoodsDownException;
import com.yeshi.fanli.exception.share.ShareGoodsException;
public interface TaoBaoGoodsBriefService {
   public void save(TaoBaoGoodsBrief taoBaoGoodsBrief) throws ExistObjectException;
   public List<TaoBaoGoodsBrief> getTBList(int i, String key);
   public int getCount(String key);
   public TaoBaoGoodsBrief getTaoBao(long id);
   public TaoBaoGoodsBrief getTaoBaoByAuctionId(long id);
   public void deleteTaoBaoGoods(long id);
   public void addRecommendSectionGoods(long rsid, long tbid) throws NotExistObjectException, ExistObjectException;
   public void addClassRecommendGoods(long gcid, long tbid) throws NotExistObjectException, ExistObjectException;
   public TaoBaoGoodsBrief getTaoBaoByAuctionId(String tbid);
   public void updateTBGoods(TaoBaoGoodsBrief tb) throws NotExistObjectException;
   /**
    * 更新最新的商品数据到数据库
    *
    * @param tb
    * @throws NotExistObjectException
    */
   public void updateTBGoodsWithNewInfo(TaoBaoGoodsBrief tb) throws NotExistObjectException;
   public List<TaoBaoGoodsBrief> getAllTaoBao();
   public void getUpdateTaoBao();
   public int getInvalidCount();
   public List<TaoBaoGoodsBrief> getInvalidTB(int pageIndex);
   public void updateTaoBaoGoods(TaoBaoGoodsBrief taoBaoGoodsBrief) throws TaobaoGoodsDownException;
   public List<RecommendSectionGoods> listRecommendSectionGoods();
   public void addEveryDayTask(long tbid) throws NotExistObjectException, ExistObjectException;
   /**
    * 获取单个商品用户能够分得的红包
@@ -78,13 +32,6 @@
    */
   List<TaoBaoGoodsBrief> queryByAuctionId(Long auctionId);
   /**
    * 选择行插入数据
    *
    * @param taoBaoGoodsBrief
    * @return
    */
   public int insertSelective(TaoBaoGoodsBrief taoBaoGoodsBrief);
   public TaoBaoGoodsBrief selectByPrimaryKey(Long id);
@@ -118,8 +65,37 @@
    * @param list
    * @return
    */
   public List<TaoBaoGoodsBrief> listQueryByAuctionId(List<Long> list);
   public List<Long> listExistById(List<Long> list);
   /**
    * 根据店铺id查询
    * @param start
    * @param count
    * @param shopId
    * @return
    */
   public List<TaoBaoGoodsBrief> listByShopId(long start, int count, Long shopId);
   public long countByShopId(Long shopId);
   /**
    * 批量删除
    * @param list
    */
   public void deleteBatchByGoodsId(List<Long> list);
   /**
    * 主键删除
    * @param id
    */
   public void deleteByPrimaryKey(Long id);
   /**
    * 过滤掉下架商品
    * @param goodsList
    */
   public List<TaoBaoGoodsBrief>  filterOffLineGoods(List<TaoBaoGoodsBrief> goodsList);
}