| | |
| | | import com.yeshi.fanli.entity.bus.lable.QualityFactory;
|
| | | import com.yeshi.fanli.entity.common.AdminUser;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.exception.QualityFactoryException;
|
| | | import com.yeshi.fanli.exception.goods.quality.QualityFactoryException;
|
| | | import com.yeshi.fanli.vo.quality.QualityFactoryVO;
|
| | |
|
| | | public interface QualityFactoryService {
|
| | |
| | | */
|
| | | public void deleteByGoodsId(List<String> ids) throws QualityFactoryException;
|
| | |
|
| | | /**
|
| | | * 根据淘宝id 删除精选库对应信息
|
| | | * |
| | | * @param gid
|
| | | * @throws QualityFactoryException
|
| | | */
|
| | | public void deleteByTaoBaoGoodsId(Long gid) throws QualityFactoryException;
|
| | |
|
| | | /**
|
| | | * 根据淘宝id集合 批量删除精选库对应信息
|
| | |
| | | * @param listId
|
| | | * @throws QualityFactoryException
|
| | | */
|
| | | public void deleteBatchByTaoBaoGoodsId(List<Long> listId) throws QualityFactoryException;
|
| | | public void deleteBatchByTaoBaoGoodsId(List<Long> listId);
|
| | |
|
| | | /**
|
| | | * 根据淘宝id 删除
|
| | |
| | | * @param auctionId
|
| | | * @throws QualityFactoryException
|
| | | */
|
| | | public void deleteByTbAuctionId(Long auctionId);
|
| | | public void deleteByTaoBaoGoodsId(Long auctionId);
|
| | |
|
| | | /**
|
| | | * 统计商品id 是存在精品库
|
| | |
| | | */
|
| | | public List<QualityFactory> queryAll(long start, int count, Integer days);
|
| | |
|
| | | /**
|
| | | * 查询需要更新的精选库商品id
|
| | | * |
| | | * @param count
|
| | | * @param hour
|
| | | * @return
|
| | | */
|
| | | public List<Long> queryNeedUpdate(long start, int count, int hour);
|
| | |
|
| | | /**
|
| | | * 统计更新数据量
|
| | | * |
| | | * @return
|
| | | */
|
| | | public long queryNeedUpdateCount();
|
| | |
|
| | | /**
|
| | | * 查询精选商品数据应用前端
|
| | |
| | | * @param systemCid
|
| | | * @param labels
|
| | | */
|
| | | public void autoInsertOrUpadateStorage(List<TaoBaoGoodsBrief> goodsList, List<Label> listLabs,
|
| | | BoutiqueAutoRule autoRule) throws Exception;
|
| | | public void autoInsertOrUpadateStorage(BoutiqueAutoRule autoRule, List<TaoBaoGoodsBrief> goodsList, List<Label> listLabs);
|
| | |
|
| | | /**
|
| | | * AuctionId查收精选库
|
| | |
| | | * 商品来源
|
| | | * @return
|
| | | */
|
| | | public List<Long> getAuctionIdbyClassId(Long systemCid, Integer goodsSource, String dateTime)
|
| | | throws QualityFactoryException;
|
| | | public List<Long> getAuctionIdbyClassId(Long systemCid, Integer goodsSource, String dateTime);
|
| | |
|
| | | /**
|
| | | * 更新权重
|
| | |
| | | /**
|
| | | * 根据精选库商品id 更新商品信息
|
| | | *
|
| | | * @param listId
|
| | | * @param gid
|
| | | * 商品主键
|
| | | */
|
| | | public void updateGoodsFactory(List<Long> listId);
|
| | | public void updateQualityGoods(Long goodsId);
|
| | |
|
| | | /**
|
| | | * 根据最低销量查询精选库(按创建时间倒叙排列)
|
| | |
| | | throws Exception;
|
| | |
|
| | | /**
|
| | | * 根据淘宝id获取详情插入精选库
|
| | | * @param listTaoBaoId
|
| | | * @param lableNames
|
| | | * @param admin
|
| | | * @throws Exception
|
| | | * 删除数据
|
| | | * @param systemCid
|
| | | * @param formatDate
|
| | | * @param source
|
| | | */
|
| | | public void addBatchGoodsByTaoBaoId(List<Long> listTaoBaoId, String lableNames, AdminUser admin) throws Exception;
|
| | | public void deleteNotUpdateGoods(Long systemCid, String formatDate, int source);
|
| | |
|
| | | }
|