1. fix bugs
This commit is contained in:
2026-02-15 11:38:22 +08:00
parent 0656cabe4a
commit 6d85686270
2 changed files with 10 additions and 0 deletions

View File

@@ -41,6 +41,15 @@
<if test="order.id != null">
and uo.id = #{order.id}
</if>
<if test="order.account != null">
and bu.account = #{order.account}
</if>
<if test="order.paymentStatus !=null">
and uo.payment_status = #{order.paymentStatus}
</if>
<if test="order.paymentType !=null">
and uo.paymentType = #{order.paymentType}
</if>
<if test="order.orderStatus != null">
and uo.order_status = #{order.orderStatus}
</if>

View File

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