| | |
| | | }
|
| | |
|
| | | try {
|
| | | qualityFactoryService.updateWeight(10, 3);
|
| | | qualityFactoryService.updateWeight(1, 4);
|
| | | } catch (Exception e) {
|
| | | LogHelper.errorDetailInfo(e);
|
| | | }
|
| | |
| | | taoBaoGoodsUpdateService.deleteOutOfDate();
|
| | | }
|
| | |
|
| | | // 添加精选库中需要更新的淘宝商品ID(2个小时执行一次)
|
| | |
|
| | | /**
|
| | | * 更新超过4个小时未更新的商品
|
| | | */
|
| | | @Scheduled(cron = "0 0 1/2 * * ? ")
|
| | | public void addNeddUpdateTaoBaoGoods() {
|
| | | if (!Constant.IS_TASK)
|
| | | return;
|
| | |
|
| | | List<Long> list = qualityFactoryService.queryNeedUpdate(0, 1000, 4);
|
| | | List<Long> list = taoBaoGoodsUpdateService.listNeedUpdateGoodsId(0, 4000, 4);
|
| | | if (list == null || list.size() == 0) {
|
| | | return;
|
| | | }
|