update:修改订单提交顺序

This commit is contained in:
Damonny 2025-03-07 09:17:15 +08:00
parent 193cc8e9bf
commit 362f1708cc
2 changed files with 20 additions and 2 deletions

View File

@ -81,4 +81,23 @@ public interface OrdersService extends IService<OrdersDO> {
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);
}

View File

@ -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<OrdersMapper, OrdersDO> implements OrdersService {
@Lazy
@Resource
private OrdersServiceImpl ordersService;
private OrdersService ordersService;
@Resource
private OrdersMapper ordersMapper;
@Resource