| | |
| | |
|
| | | @Resource
|
| | | private TaoBaoGoodsUpdateDao taoBaoGoodsUpdateDao;
|
| | | |
| | |
|
| | | @Resource
|
| | | private TLJFreeBuyGoodsUpdateService tljFreeBuyGoodsUpdateService;
|
| | |
|
| | |
| | | shareHotGoodsService.deleteByGoodsId(auctionId);
|
| | | }
|
| | |
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | @Override
|
| | | public void updateTaoBaoGoods(TaoBaoGoodsBrief goods) throws TaobaoGoodsUpdateException {
|
| | | if (goods == null)
|
| | |
| | |
|
| | | // 更新自购立减库商品
|
| | | tljBuyGoodsUpdateService.updateGoods(goods);
|
| | | |
| | |
|
| | | // 更新新人免单库商品
|
| | | tljFreeBuyGoodsUpdateService.updateGoods(goods);
|
| | |
|
| | |
| | | * @param goods
|
| | | */
|
| | | public void updateImplTBGoods(TaoBaoGoodsBrief goods) {
|
| | | if (goods == null)
|
| | | if (goods == null || goods.getAuctionId() == null)
|
| | | return;
|
| | | if (!taoBaoGoodsCacheUtil.needUpdate(goods.getAuctionId())) {
|
| | | return;
|
| | | }
|
| | | goods.setUpdatetime(new Date());
|
| | | if (goods.getId() == null)
|
| | | goods.setId(goods.getAuctionId());
|
| | | taoBaoGoodsUpdateDao.save(goods);
|
| | | taoBaoGoodsCacheUtil.addUpdateHistory(goods.getAuctionId());
|
| | | }
|