完善了小程序端用户创建订单接口
This commit is contained in:
parent
122cb25a2a
commit
51cfb9eb00
|
@ -69,6 +69,10 @@ public class OrderAddRequest implements Serializable {
|
|||
@Schema(description = "订单状态", example = "待发货")
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 订单备注
|
||||
*/
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 订单明细信息
|
||||
|
|
|
@ -56,6 +56,10 @@ public class OrderMainInfoAddRequest implements Serializable {
|
|||
*/
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 订单备注
|
||||
*/
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 订单主要明细信息
|
||||
|
|
|
@ -77,12 +77,19 @@ public class Order implements Serializable {
|
|||
*/
|
||||
private Double totalAmount;
|
||||
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
private String orderStatus;
|
||||
|
||||
|
||||
/**
|
||||
* 订单备注
|
||||
*/
|
||||
private String note;
|
||||
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
|
|
|
@ -39,10 +39,7 @@ public class GoodVO implements Serializable {
|
|||
*/
|
||||
private String label;
|
||||
|
||||
/**
|
||||
* 预约日期
|
||||
*/
|
||||
private String reserveDate;
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -67,6 +67,11 @@ public class OrderVO implements Serializable {
|
|||
*/
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 订单备注
|
||||
*/
|
||||
private String note;
|
||||
|
||||
|
||||
/**
|
||||
* 订单明细信息
|
||||
|
|
|
@ -94,6 +94,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|||
Long couponId = orderMainInfoAddRequest.getCouponId();
|
||||
String orderNumber = orderMainInfoAddRequest.getOrderNumber();
|
||||
String orderStatus = orderMainInfoAddRequest.getOrderStatus();
|
||||
String note = orderMainInfoAddRequest.getNote();
|
||||
Double totalAmount = orderMainInfoAddRequest.getTotalAmount();
|
||||
List<OrderItemMainInfoAddRequest> orderItemMainInfoAddRequestList = orderMainInfoAddRequest.getOrderItemMainInfoAddRequestList();
|
||||
|
||||
|
@ -127,6 +128,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|||
orderAddRequest.setUserName(userName);
|
||||
orderAddRequest.setOrderNumber(orderNumber);
|
||||
orderAddRequest.setOrderStatus(orderStatus);
|
||||
orderAddRequest.setNote(note);
|
||||
orderAddRequest.setTotalAmount(totalAmount);
|
||||
orderAddRequest.setAddressSnapshot(addressSnapshot);
|
||||
orderAddRequest.setContactsSnapshot(contactsSnapshot);
|
||||
|
|
Loading…
Reference in New Issue
Block a user