| | |
| | | import com.yeshi.fanli.service.inter.taobao.TaoBaoGoodsUpdateService;
|
| | | import com.yeshi.fanli.util.CMQManager;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.cache.HttpGoodsCacheManager;
|
| | |
|
| | | /**
|
| | | * 淘宝商品更细
|
| | |
| | |
|
| | | @Resource
|
| | | private BrandClassShopGoodsService brandClassShopGoodsService;
|
| | |
|
| | | @Resource
|
| | | private HttpGoodsCacheManager httpGoodsCacheManager;
|
| | |
|
| | | // 动态商品更新 ,1个小时更新
|
| | | @Scheduled(cron = "0 0 */1 * * ?")
|
| | |
| | | return;
|
| | | brandClassShopGoodsService.startUpdateGoods();
|
| | | }
|
| | |
|
| | | // 每天凌晨4点模拟请求
|
| | | @Scheduled(cron = "0 0 4 * * ? ")
|
| | | public void simulateRequest() {
|
| | | httpGoodsCacheManager.requestHomeRecommend();
|
| | | httpGoodsCacheManager.requestClassGoods();
|
| | | httpGoodsCacheManager.requestBrandGoods();
|
| | | httpGoodsCacheManager.requestDynamic();
|
| | | httpGoodsCacheManager.requestCommonTemplate();
|
| | | }
|
| | | }
|