feat:
1. fix bugs
This commit is contained in:
@@ -41,6 +41,15 @@
|
|||||||
<if test="order.id != null">
|
<if test="order.id != null">
|
||||||
and uo.id = #{order.id}
|
and uo.id = #{order.id}
|
||||||
</if>
|
</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">
|
<if test="order.orderStatus != null">
|
||||||
and uo.order_status = #{order.orderStatus}
|
and uo.order_status = #{order.orderStatus}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
|||||||
order.setActualAmount(actualAmount);
|
order.setActualAmount(actualAmount);
|
||||||
order.setOrderType(orderType);
|
order.setOrderType(orderType);
|
||||||
order.setPaymentType(request.getIsOfflinePayment() ? request.getPaymentType() : null);
|
order.setPaymentType(request.getIsOfflinePayment() ? request.getPaymentType() : null);
|
||||||
|
order.setCreateTime(new Date());
|
||||||
this.save(order);
|
this.save(order);
|
||||||
yield new CreateOrderResponse(String.valueOf(order.getId()), actualAmount, totalAmount, discount);
|
yield new CreateOrderResponse(String.valueOf(order.getId()), actualAmount, totalAmount, discount);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user