| | |
| | | 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 Long queryCountByGoodsId(Long goodsId);
|
| | |
|
| | | /**
|
| | | * 批量入库--淘宝
|
| | | * |
| | | * @param auctionIdList
|
| | | * @param admin
|
| | | * @throws Exception
|
| | | */
|
| | | public void addBatch(List<Long> auctionIdList, String las, AdminUser admin) throws Exception;
|
| | |
|
| | | /**
|
| | | * 精选库商品筛选
|
| | | *
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param totalSales
|
| | | * @param price
|
| | | * @param tkRate
|
| | | * @param goodsSource
|
| | | * @param days
|
| | | * @param startZkPrice
|
| | | * @param endZkPrice
|
| | | * @param startBiz30day
|
| | | * @param endBiz30day
|
| | | * @param startWeight
|
| | | * @param endWeight
|
| | | * @param startTkRate
|
| | | * @param endTkRate
|
| | | * @param startAmount
|
| | | * @param endAmount
|
| | | * @param hasCoupon
|
| | | * @param freeShipment
|
| | | * @param isPrepay
|
| | | * @param payRate30
|
| | | * @param goodRate
|
| | | * @param rfdRate
|
| | | * @return
|
| | | * @throws QualityFactoryException
|
| | | */
|
| | | public List<QualityFactory> query(long start, int count, String key, Integer totalSales, Integer price,
|
| | | Integer tkRate, Integer propor, Integer goodsSource, Integer days, Integer startZkPrice, Integer endZkPrice,
|
| | | Integer startBiz30day, Integer endBiz30day, Integer startWeight, Integer endWeight, Integer startTkRate,
|
| | | Integer endTkRate, Integer startAmount, Integer endAmount, Integer hasCoupon, Integer freeShipment,
|
| | | Integer isPrepay, Integer payRate30, Integer goodRate, Integer rfdRate, Integer startPropor,
|
| | | Integer endPropor, Long gcid, Integer keyType) throws QualityFactoryException;
|
| | | public List<QualityFactory> query(QualityFactoryVO qualityFactoryVO) throws QualityFactoryException;
|
| | |
|
| | | public long queryCount(String key, Integer goodsSource, Integer days, Integer startZkPrice, Integer endZkPrice,
|
| | | Integer startBiz30day, Integer endBiz30day, Integer startWeight, Integer endWeight, Integer startTkRate,
|
| | | Integer endTkRate, Integer startAmount, Integer endAmount, Integer hasCoupon, Integer freeShipment,
|
| | | Integer isPrepay, Integer payRate30, Integer goodRate, Integer rfdRate, Integer startPropor,
|
| | | Integer endPropor, Long gcid, Integer keyType) throws QualityFactoryException;
|
| | | public long queryCount(QualityFactoryVO qualityFactoryVO) throws QualityFactoryException;
|
| | |
|
| | | /**
|
| | | * 批量设置权重 + 随机权重
|
| | |
| | | */
|
| | | 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);
|
| | |
|
| | | /**
|
| | | * 根据最低销量查询精选库(按创建时间倒叙排列)
|
| | |
| | | */
|
| | | public List<QualityFactory> listByMinSalesCountOrderByCreateTimeDesc(int salesCount, int page, int pageSize);
|
| | |
|
| | | /**
|
| | | * 批量添加商品至精选库 并贴上标签
|
| | | * @param listTaoBaoGoods
|
| | | * @param lableNames
|
| | | * @param admin
|
| | | * @throws Exception
|
| | | */
|
| | | public void addBatchTaoBaoGoods(List<TaoBaoGoodsBrief> listTaoBaoGoods, String lableNames, AdminUser admin)
|
| | | throws Exception;
|
| | |
|
| | | /**
|
| | | * 删除数据
|
| | | * @param systemCid
|
| | | * @param formatDate
|
| | | * @param source
|
| | | */
|
| | | public void deleteNotUpdateGoods(Long systemCid, String formatDate, int source);
|
| | |
|
| | | }
|