From 485b09d75ac79350392e234a62521050bf6374de Mon Sep 17 00:00:00 2001 From: luofl <1442745593@qq.com> Date: 星期二, 04 三月 2025 11:00:43 +0800 Subject: [PATCH] 修改物流信息导入模板 --- ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/ShoppingCartServiceImpl.java | 20 ++------------------ 1 files changed, 2 insertions(+), 18 deletions(-) diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/ShoppingCartServiceImpl.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/ShoppingCartServiceImpl.java index d4e8d6f..d4c663a 100644 --- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/ShoppingCartServiceImpl.java +++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/ShoppingCartServiceImpl.java @@ -1435,15 +1435,7 @@ orderBalancePaymentService.save(orderBalancePayment); } - //异步线程执行分佣临时数据构建 - ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(1), new ThreadPoolExecutor.DiscardPolicy()); - threadPoolExecutor.execute(new Runnable() { - @Override - public void run() { - commissionService.calculationCommissionUser(); - commissionService.calculationCommissionShop(); - } - }); + commissionService.calculationCommissionUser(order.getId()); return R.ok(order.getId().toString()); } @@ -1548,15 +1540,7 @@ goodsClient.editGoodsNum(goodsId, 1); } - //异步线程执行分佣临时数据构建 - ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(1), new ThreadPoolExecutor.DiscardPolicy()); - threadPoolExecutor.execute(new Runnable() { - @Override - public void run() { - commissionService.calculationCommissionUser(); - commissionService.calculationCommissionShop(); - } - }); + commissionService.calculationCommissionUser(order.getId()); return R.ok(); } -- Gitblit v1.7.1