refactor(订单服务): 移除createOrder方法的@Transactional注解

移除OrderApplicationService中createOrder方法的@Transactional注解,以避免不必要的事务管理开销。同时,更新PaymentApplicationService中的操作类型为"callJsApiPreCreate",以更准确地反映支付操作的实际行为。
This commit is contained in:
dzq 2025-04-29 08:17:15 +08:00
parent 727b892eab
commit 6160e7a0c5
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ public class OrderApplicationService {
} }
} }
@Transactional // @Transactional
public CreateOrderResult createOrder(SubmitOrderCommand command) { public CreateOrderResult createOrder(SubmitOrderCommand command) {
List<ShopOrderGoodsEntity> goodsList = command.getGoodsList(); List<ShopOrderGoodsEntity> goodsList = command.getGoodsList();

View File

@ -82,7 +82,7 @@ public class PaymentApplicationService {
} catch (Exception e) { } catch (Exception e) {
AddPaymentOperationLogCommand paymentOperationLogCommand = new AddPaymentOperationLogCommand(); AddPaymentOperationLogCommand paymentOperationLogCommand = new AddPaymentOperationLogCommand();
paymentOperationLogCommand.setParams("body" + jsonBody + " result" + result); paymentOperationLogCommand.setParams("body" + jsonBody + " result" + result);
paymentOperationLogCommand.setOperationType("submitOrder"); paymentOperationLogCommand.setOperationType("callJsApiPreCreate");
paymentOperationLogCommand.setStatus(2); paymentOperationLogCommand.setStatus(2);
paymentOperationLogCommand.setRemark(ExceptionUtils.getStackTrace(e)); paymentOperationLogCommand.setRemark(ExceptionUtils.getStackTrace(e));
paymentOperationLogCommand.initBaseEntity(); paymentOperationLogCommand.initBaseEntity();