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