|
@@ -308,10 +308,10 @@ public class OrderScheduler {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 更新店铺销量
|
|
* 更新店铺销量
|
|
|
- * 每天1点、10点、13点、22点执行
|
|
|
|
|
|
|
+ * 每天1点、10点、15点、22点执行
|
|
|
*/
|
|
*/
|
|
|
- // @Async
|
|
|
|
|
- // @Scheduled(cron = "0 0 1,10,13,22 * * ?")
|
|
|
|
|
|
|
+ @Async
|
|
|
|
|
+ @Scheduled(cron = "0 0 1,10,15,22 * * ?")
|
|
|
public void updateShopSales() {
|
|
public void updateShopSales() {
|
|
|
RLock lock = null;
|
|
RLock lock = null;
|
|
|
try {
|
|
try {
|
|
@@ -323,7 +323,7 @@ public class OrderScheduler {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
log.info("更新店铺销量任务开始运行");
|
|
log.info("更新店铺销量任务开始运行");
|
|
|
- Map<Long, Integer> shopSalesMap = orderService.countFinishByShopIdWithLast30Days();
|
|
|
|
|
|
|
+ Map<Long, Integer> shopSalesMap = orderService.countFinishGroupByShopId();
|
|
|
goodsShopService.updateShopSales(shopSalesMap);
|
|
goodsShopService.updateShopSales(shopSalesMap);
|
|
|
log.info("更新店铺销量任务运行成功");
|
|
log.info("更新店铺销量任务运行成功");
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|