This commit is contained in:
2026-03-28 18:59:35 +08:00
parent c07e7ec5fd
commit ad0beed1c5

View File

@@ -210,7 +210,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
order.setTotalAmount(totalAmount); order.setTotalAmount(totalAmount);
order.setActualAmount(actualAmount); order.setActualAmount(actualAmount);
order.setOrderType(orderType); order.setOrderType(orderType);
order.setPaymentType(request.getIsOfflinePayment() ? request.getPaymentType() : null); order.setPaymentType(request.getPaymentType());
order.setCreateTime(new Date()); order.setCreateTime(new Date());
this.save(order); this.save(order);
return new CreateOrderResponse(String.valueOf(order.getId()), actualAmount, totalAmount, discount); return new CreateOrderResponse(String.valueOf(order.getId()), actualAmount, totalAmount, discount);
@@ -515,7 +515,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
order.setTotalAmount(totalAmount); order.setTotalAmount(totalAmount);
order.setActualAmount(actualAmount); order.setActualAmount(actualAmount);
order.setOrderType(orderType); order.setOrderType(orderType);
order.setPaymentType(request.getIsOfflinePayment() ? request.getPaymentType() : null); order.setPaymentType(request.getPaymentType());
order.setCreateTime(new Date()); order.setCreateTime(new Date());
this.save(order); this.save(order);
return new CreateOrderResponse(String.valueOf(order.getId()), actualAmount, totalAmount, discount); return new CreateOrderResponse(String.valueOf(order.getId()), actualAmount, totalAmount, discount);