yujian
2019-04-29 9a24f2802a3d6fe3e82c05e52f2880d65ad04dcf
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;
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;
   /**
    * 获取单个商品用户能够分得的红包
@@ -89,22 +43,6 @@
   public TaoBaoGoodsBrief selectByPrimaryKey(Long id);
   /**
    * 更新商品信息与淘宝信息一致
    *
    * @param taoBaoGoodsBrief
    * @throws TaobaoGoodsDownException
    */
   public void updateTaoBaoGoodsByMybatis(TaoBaoGoodsBrief taoBaoGoodsBrief) throws TaobaoGoodsDownException;
   /**
    * 选择性更新数据--mybatis
    *
    * @param taoBaoGoodsBrief
    * @throws TaobaoGoodsDownException
    */
   public void updateByPrimaryKeySelective(TaoBaoGoodsBrief taoBaoGoodsBrief) throws TaobaoGoodsDownException;
   /**
    * 设置默认值
    * 
    * @param goodsBrief
@@ -121,23 +59,12 @@
    */
   public TaoBaoGoodsBrief getTaoBaoGoodsDetailForShare(Long auctionId, Long uid) throws ShareGoodsException;
   public int updateByPrimaryKey(TaoBaoGoodsBrief taoBaoGoodsBrief);
   /**
    * 批量插入商品
    * @param list
    * @return
    */
   public int insertBatch(List<TaoBaoGoodsBrief> list);
   /**
    * 批量更新商品
    * @param list
    */
   public void updateBatchSelective(List<TaoBaoGoodsBrief> list);
   
   /**