refactor(订单服务): 移除createOrder方法的@Transactional注解
移除OrderApplicationService中createOrder方法的@Transactional注解,以避免不必要的事务管理开销。同时,更新PaymentApplicationService中的操作类型为"callJsApiPreCreate",以更准确地反映支付操作的实际行为。
This commit is contained in:
parent
727b892eab
commit
6160e7a0c5
|
@ -141,7 +141,7 @@ public class OrderApplicationService {
|
|||
}
|
||||
}
|
||||
|
||||
@Transactional
|
||||
// @Transactional
|
||||
public CreateOrderResult createOrder(SubmitOrderCommand command) {
|
||||
List<ShopOrderGoodsEntity> goodsList = command.getGoodsList();
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ public class PaymentApplicationService {
|
|||
} catch (Exception e) {
|
||||
AddPaymentOperationLogCommand paymentOperationLogCommand = new AddPaymentOperationLogCommand();
|
||||
paymentOperationLogCommand.setParams("body:" + jsonBody + " result:" + result);
|
||||
paymentOperationLogCommand.setOperationType("submitOrder");
|
||||
paymentOperationLogCommand.setOperationType("callJsApiPreCreate");
|
||||
paymentOperationLogCommand.setStatus(2);
|
||||
paymentOperationLogCommand.setRemark(ExceptionUtils.getStackTrace(e));
|
||||
paymentOperationLogCommand.initBaseEntity();
|
||||
|
|
Loading…
Reference in New Issue