From 362f1708cc1a6ca5bcb56b15b9a0beb8178d2fba Mon Sep 17 00:00:00 2001 From: Damonny <826010988@qq.com> Date: Fri, 7 Mar 2025 09:17:15 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../haoka/service/orders/OrdersService.java | 19 +++++++++++++++++++ .../service/orders/OrdersServiceImpl.java | 3 +-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/yudao-module-haoka/yudao-module-haoka-biz/src/main/java/cn/iocoder/yudao/module/haoka/service/orders/OrdersService.java b/yudao-module-haoka/yudao-module-haoka-biz/src/main/java/cn/iocoder/yudao/module/haoka/service/orders/OrdersService.java index 1a7bf1dd97..7e4e21b326 100644 --- a/yudao-module-haoka/yudao-module-haoka-biz/src/main/java/cn/iocoder/yudao/module/haoka/service/orders/OrdersService.java +++ b/yudao-module-haoka/yudao-module-haoka-biz/src/main/java/cn/iocoder/yudao/module/haoka/service/orders/OrdersService.java @@ -81,4 +81,23 @@ public interface OrdersService extends IService { void submitUpStreamStatus(OrdersSaveReqVO updateReqVO); void changeStatus(OrdersSaveReqVO updateReqVO); + + /** + * 异步执行 + * @param ordersDO + */ + void asyncSubmitAuditOrders(OrdersDO ordersDO); + + /** + * 异步执行 + * @param ordersDO + */ + void asyncAuditOrders(OrdersDO ordersDO); + + /** + * 异步执行 + * @param oldOrderDo + * @param updateObj + */ + void syncDouDian(OrdersDO oldOrderDo, OrdersDO updateObj); } diff --git a/yudao-module-haoka/yudao-module-haoka-biz/src/main/java/cn/iocoder/yudao/module/haoka/service/orders/OrdersServiceImpl.java b/yudao-module-haoka/yudao-module-haoka-biz/src/main/java/cn/iocoder/yudao/module/haoka/service/orders/OrdersServiceImpl.java index 3c96925c89..d425b127a4 100644 --- a/yudao-module-haoka/yudao-module-haoka-biz/src/main/java/cn/iocoder/yudao/module/haoka/service/orders/OrdersServiceImpl.java +++ b/yudao-module-haoka/yudao-module-haoka-biz/src/main/java/cn/iocoder/yudao/module/haoka/service/orders/OrdersServiceImpl.java @@ -34,7 +34,6 @@ import org.springframework.context.annotation.Lazy; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import jakarta.annotation.Resource; -import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import org.springframework.validation.annotation.Validated; @@ -67,7 +66,7 @@ import static cn.iocoder.yudao.module.haoka.enums.ErrorCodeConstants.*; public class OrdersServiceImpl extends ServiceImpl implements OrdersService { @Lazy @Resource - private OrdersServiceImpl ordersService; + private OrdersService ordersService; @Resource private OrdersMapper ordersMapper; @Resource