重新对 order 进行查分,给芋艿哥哥看看哈~

This commit is contained in:
sin 2019-03-19 21:04:22 +08:00
parent 45dfd137d4
commit d844a62440
7 changed files with 812 additions and 131 deletions

View File

@ -12,9 +12,13 @@ import java.util.Date;
public class OrderDO implements Serializable {
/**
* 编号
* id
*/
private Integer id;
/**
* 物流id
*/
private Integer orderLogisticsId;
/**
* 订单编号
*/
@ -23,51 +27,12 @@ public class OrderDO implements Serializable {
* 交易金额
*/
private Integer price;
///
/// 时间信息
/**
* 收件区域编号
*/
private String receiverAreaNo;
/**
* 收件人名称
*/
private String receiverName;
/**
* 收件手机号
*/
private String receiverMobile;
/**
* 收件详细地址
*/
private String receiverAddress;
/**
* 状态(如果有多个商品分开发货需要全部商品发完才会改变状态)
*
* - 0代发货
* - 1已发货
* - 2已收货
* - 20换货中
* - 21换货成功
* - 40退货中
* - 41已退货
*/
private Integer status;
/**
* 支付状态
*
* - 0待支付
* - 1支付完成
* - 2已退款
*/
private Integer payStatus;
/**
* 删除状态
*
* - 0 未删除
* - 1 已删除
*/
private Integer deleteStatus;
/**
* 订单创建时间
* 创建时间
*/
private Date createTime;
/**
@ -78,10 +43,48 @@ public class OrderDO implements Serializable {
* 发货时间
*/
private Date deliveryTime;
/**
* 收货时间
*/
private Date receiverTime;
/**
* 成交时间
*/
private Date closingTime;
///
/// 其他
/**
* 是否退货
*
* - 0no
* - 1yes
*/
private Integer hasReturn;
/**
* 是否换货
*
* - 0no
* - 1yes
*/
private Integer hasExchange;
/**
* 状态(如果有多个商品分开发货需要全部商品发完才会改变状态)
*
* - 0代付款
* - 1已付款
* - 2已退款
* - 3已完成
*/
private Integer status;
/**
* 删除状态
*
* - 0 未删除
* - 1 已删除
*/
private Integer deleteStatus;
/**
* 备注
*/
@ -91,19 +94,18 @@ public class OrderDO implements Serializable {
public String toString() {
return "OrderDO{" +
"id=" + id +
", orderLogisticsId=" + orderLogisticsId +
", orderNo='" + orderNo + '\'' +
", price=" + price +
", receiverAreaNo='" + receiverAreaNo + '\'' +
", receiverName='" + receiverName + '\'' +
", receiverMobile='" + receiverMobile + '\'' +
", receiverAddress='" + receiverAddress + '\'' +
", status=" + status +
", payStatus=" + payStatus +
", deleteStatus=" + deleteStatus +
", createTime=" + createTime +
", paymentTime=" + paymentTime +
", deliveryTime=" + deliveryTime +
", receiverTime=" + receiverTime +
", closingTime=" + closingTime +
", hasReturn=" + hasReturn +
", hasExchange=" + hasExchange +
", status=" + status +
", deleteStatus=" + deleteStatus +
", remark='" + remark + '\'' +
'}';
}
@ -117,6 +119,15 @@ public class OrderDO implements Serializable {
return this;
}
public Integer getOrderLogisticsId() {
return orderLogisticsId;
}
public OrderDO setOrderLogisticsId(Integer orderLogisticsId) {
this.orderLogisticsId = orderLogisticsId;
return this;
}
public String getOrderNo() {
return orderNo;
}
@ -135,69 +146,6 @@ public class OrderDO implements Serializable {
return this;
}
public String getReceiverAreaNo() {
return receiverAreaNo;
}
public OrderDO setReceiverAreaNo(String receiverAreaNo) {
this.receiverAreaNo = receiverAreaNo;
return this;
}
public String getReceiverName() {
return receiverName;
}
public OrderDO setReceiverName(String receiverName) {
this.receiverName = receiverName;
return this;
}
public String getReceiverMobile() {
return receiverMobile;
}
public OrderDO setReceiverMobile(String receiverMobile) {
this.receiverMobile = receiverMobile;
return this;
}
public String getReceiverAddress() {
return receiverAddress;
}
public OrderDO setReceiverAddress(String receiverAddress) {
this.receiverAddress = receiverAddress;
return this;
}
public Integer getStatus() {
return status;
}
public OrderDO setStatus(Integer status) {
this.status = status;
return this;
}
public Integer getPayStatus() {
return payStatus;
}
public OrderDO setPayStatus(Integer payStatus) {
this.payStatus = payStatus;
return this;
}
public Integer getDeleteStatus() {
return deleteStatus;
}
public OrderDO setDeleteStatus(Integer deleteStatus) {
this.deleteStatus = deleteStatus;
return this;
}
public Date getCreateTime() {
return createTime;
}
@ -225,6 +173,15 @@ public class OrderDO implements Serializable {
return this;
}
public Date getReceiverTime() {
return receiverTime;
}
public OrderDO setReceiverTime(Date receiverTime) {
this.receiverTime = receiverTime;
return this;
}
public Date getClosingTime() {
return closingTime;
}
@ -234,6 +191,42 @@ public class OrderDO implements Serializable {
return this;
}
public Integer getHasReturn() {
return hasReturn;
}
public OrderDO setHasReturn(Integer hasReturn) {
this.hasReturn = hasReturn;
return this;
}
public Integer getHasExchange() {
return hasExchange;
}
public OrderDO setHasExchange(Integer hasExchange) {
this.hasExchange = hasExchange;
return this;
}
public Integer getStatus() {
return status;
}
public OrderDO setStatus(Integer status) {
this.status = status;
return this;
}
public Integer getDeleteStatus() {
return deleteStatus;
}
public OrderDO setDeleteStatus(Integer deleteStatus) {
this.deleteStatus = deleteStatus;
return this;
}
public String getRemark() {
return remark;
}

View File

@ -0,0 +1,188 @@
package cn.iocoder.mall.order.dataobject;
import java.io.Serializable;
import java.util.Date;
/**
* 换货订单
*
* @author Sin
* @time 2019-03-19 19:48
*/
public class OrderExchangeDO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 订单id
*/
private Integer orderId;
/**
* 订单编号
*/
private String orderNo;
/**
* 换货物流id
*/
private Integer exchangeOrderLogisticsId;
/**
* 收件物流id
*/
private Integer receiverOrderLogisticsId;
///
/// 时间信息
/**
* 创建时间
*/
private Date createTime;
/**
* 付款时间
*/
private Date paymentTime;
/**
* 发货时间
*/
private Date deliveryTime;
/**
* 收货时间
*/
private Date receiverTime;
/**
* 成交时间
*/
private Date closingTime;
///
/// 其他
/**
* 状态
*
* - 申请换货
* - 申请成功
* - 申请失败
* - 换货中
* - 换货成功
*/
private Integer status;
@Override
public String toString() {
return "OrderExchangeDO{" +
"id=" + id +
", orderId=" + orderId +
", orderNo='" + orderNo + '\'' +
", exchangeOrderLogisticsId=" + exchangeOrderLogisticsId +
", receiverOrderLogisticsId=" + receiverOrderLogisticsId +
", createTime=" + createTime +
", paymentTime=" + paymentTime +
", deliveryTime=" + deliveryTime +
", receiverTime=" + receiverTime +
", closingTime=" + closingTime +
", status=" + status +
'}';
}
public Integer getId() {
return id;
}
public OrderExchangeDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getOrderId() {
return orderId;
}
public OrderExchangeDO setOrderId(Integer orderId) {
this.orderId = orderId;
return this;
}
public String getOrderNo() {
return orderNo;
}
public OrderExchangeDO setOrderNo(String orderNo) {
this.orderNo = orderNo;
return this;
}
public Integer getExchangeOrderLogisticsId() {
return exchangeOrderLogisticsId;
}
public OrderExchangeDO setExchangeOrderLogisticsId(Integer exchangeOrderLogisticsId) {
this.exchangeOrderLogisticsId = exchangeOrderLogisticsId;
return this;
}
public Integer getReceiverOrderLogisticsId() {
return receiverOrderLogisticsId;
}
public OrderExchangeDO setReceiverOrderLogisticsId(Integer receiverOrderLogisticsId) {
this.receiverOrderLogisticsId = receiverOrderLogisticsId;
return this;
}
public Date getCreateTime() {
return createTime;
}
public OrderExchangeDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getPaymentTime() {
return paymentTime;
}
public OrderExchangeDO setPaymentTime(Date paymentTime) {
this.paymentTime = paymentTime;
return this;
}
public Date getDeliveryTime() {
return deliveryTime;
}
public OrderExchangeDO setDeliveryTime(Date deliveryTime) {
this.deliveryTime = deliveryTime;
return this;
}
public Date getReceiverTime() {
return receiverTime;
}
public OrderExchangeDO setReceiverTime(Date receiverTime) {
this.receiverTime = receiverTime;
return this;
}
public Date getClosingTime() {
return closingTime;
}
public OrderExchangeDO setClosingTime(Date closingTime) {
this.closingTime = closingTime;
return this;
}
public Integer getStatus() {
return status;
}
public OrderExchangeDO setStatus(Integer status) {
this.status = status;
return this;
}
}

View File

@ -19,6 +19,10 @@ public class OrderItemDO implements Serializable {
* 订单编号
*/
private Integer orderId;
/**
* 订单号
*/
private String orderNo;
/**
* 商品编号
*/
@ -31,33 +35,75 @@ public class OrderItemDO implements Serializable {
* 金额()
*/
private Integer price;
///
/// 时间信息
/**
* 状态
*
* - 0代发货
* - 1已发货
* - 2已收货
* - 20换货中
* - 21换货成功
* - 40退货中
* - 41已退货
* 创建时间
*/
private Integer status;
private Date createTime;
/**
* 付款时间
*/
private Date paymentTime;
/**
* 发货时间
*/
private Date deliveryTime;
/**
* 收货时间
*/
private Date receiverTime;
/**
* 成交时间
*/
private Date closingTime;
///
/// 其他
/**
* 是否退货
*
* - 0no
* - 1yes
*/
private Integer hasReturn;
/**
* 是否换货
*
* - 0no
* - 1yes
*/
private Integer hasExchange;
/**
* 状态
*
* - 0代付款
* - 1已付款
* - 2已退款
* - 3已完成
*/
private Integer status;
@Override
public String toString() {
return "OrderItemDO{" +
"id=" + id +
", orderId='" + orderId + '\'' +
", orderId=" + orderId +
", orderNo='" + orderNo + '\'' +
", commodityId='" + commodityId + '\'' +
", quantity=" + quantity +
", price=" + price +
", status=" + status +
", createTime=" + createTime +
", paymentTime=" + paymentTime +
", deliveryTime=" + deliveryTime +
", receiverTime=" + receiverTime +
", closingTime=" + closingTime +
", hasReturn=" + hasReturn +
", hasExchange=" + hasExchange +
", status=" + status +
'}';
}
@ -79,6 +125,15 @@ public class OrderItemDO implements Serializable {
return this;
}
public String getOrderNo() {
return orderNo;
}
public OrderItemDO setOrderNo(String orderNo) {
this.orderNo = orderNo;
return this;
}
public String getCommodityId() {
return commodityId;
}
@ -106,12 +161,21 @@ public class OrderItemDO implements Serializable {
return this;
}
public Integer getStatus() {
return status;
public Date getCreateTime() {
return createTime;
}
public OrderItemDO setStatus(Integer status) {
this.status = status;
public OrderItemDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getPaymentTime() {
return paymentTime;
}
public OrderItemDO setPaymentTime(Date paymentTime) {
this.paymentTime = paymentTime;
return this;
}
@ -123,4 +187,49 @@ public class OrderItemDO implements Serializable {
this.deliveryTime = deliveryTime;
return this;
}
public Date getReceiverTime() {
return receiverTime;
}
public OrderItemDO setReceiverTime(Date receiverTime) {
this.receiverTime = receiverTime;
return this;
}
public Date getClosingTime() {
return closingTime;
}
public OrderItemDO setClosingTime(Date closingTime) {
this.closingTime = closingTime;
return this;
}
public Integer getHasReturn() {
return hasReturn;
}
public OrderItemDO setHasReturn(Integer hasReturn) {
this.hasReturn = hasReturn;
return this;
}
public Integer getHasExchange() {
return hasExchange;
}
public OrderItemDO setHasExchange(Integer hasExchange) {
this.hasExchange = hasExchange;
return this;
}
public Integer getStatus() {
return status;
}
public OrderItemDO setStatus(Integer status) {
this.status = status;
return this;
}
}

View File

@ -0,0 +1,103 @@
package cn.iocoder.mall.order.dataobject;
import java.io.Serializable;
/**
* 订单物流信息
*
* @author Sin
* @time 2019-03-19 20:47
*/
public class OrderLogisticsDO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 收件区域编号
*/
private String areaNo;
/**
* 收件人名称
*/
private String name;
/**
* 收件手机号
*/
private String mobile;
/**
* 收件详细地址
*/
private String address;
/**
* 物流编号
*/
private String logisticsNo;
@Override
public String toString() {
return "OrderLogisticsDO{" +
"id=" + id +
", areaNo='" + areaNo + '\'' +
", name='" + name + '\'' +
", mobile='" + mobile + '\'' +
", address='" + address + '\'' +
", logisticsNo='" + logisticsNo + '\'' +
'}';
}
public Integer getId() {
return id;
}
public OrderLogisticsDO setId(Integer id) {
this.id = id;
return this;
}
public String getAreaNo() {
return areaNo;
}
public OrderLogisticsDO setAreaNo(String areaNo) {
this.areaNo = areaNo;
return this;
}
public String getName() {
return name;
}
public OrderLogisticsDO setName(String name) {
this.name = name;
return this;
}
public String getMobile() {
return mobile;
}
public OrderLogisticsDO setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public String getAddress() {
return address;
}
public OrderLogisticsDO setAddress(String address) {
this.address = address;
return this;
}
public String getLogisticsNo() {
return logisticsNo;
}
public OrderLogisticsDO setLogisticsNo(String logisticsNo) {
this.logisticsNo = logisticsNo;
return this;
}
}

View File

@ -0,0 +1,92 @@
package cn.iocoder.mall.order.dataobject;
import java.io.Serializable;
import java.util.Date;
/**
* 订单物流 - 详细信息
*
* - 同步第三方物流信息
*
* @author Sin
* @time 2019-03-19 20:48
*/
public class OrderLogisticsDetailDO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 物流id
*/
private Integer orderLogisticsId;
/**
* 物流时间
*/
private Date logisticsTime;
/**
* 物流信息
*/
private String logisticsInformation;
/**
* 创建时间同步时间
*/
private Date createTime;
@Override
public String toString() {
return "OrderLogisticsDetailDO{" +
"id=" + id +
", orderLogisticsId=" + orderLogisticsId +
", logisticsTime=" + logisticsTime +
", logisticsInformation='" + logisticsInformation + '\'' +
", createTime=" + createTime +
'}';
}
public Integer getId() {
return id;
}
public OrderLogisticsDetailDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getOrderLogisticsId() {
return orderLogisticsId;
}
public OrderLogisticsDetailDO setOrderLogisticsId(Integer orderLogisticsId) {
this.orderLogisticsId = orderLogisticsId;
return this;
}
public Date getLogisticsTime() {
return logisticsTime;
}
public OrderLogisticsDetailDO setLogisticsTime(Date logisticsTime) {
this.logisticsTime = logisticsTime;
return this;
}
public String getLogisticsInformation() {
return logisticsInformation;
}
public OrderLogisticsDetailDO setLogisticsInformation(String logisticsInformation) {
this.logisticsInformation = logisticsInformation;
return this;
}
public Date getCreateTime() {
return createTime;
}
public OrderLogisticsDetailDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
}

View File

@ -0,0 +1,191 @@
package cn.iocoder.mall.order.dataobject;
import java.io.Serializable;
import java.util.Date;
/**
* 退货订单
*
* @author Sin
* @time 2019-03-19 19:48
*/
public class OrderReturnDO implements Serializable {
/**
* 编号自动增长
*/
private Integer id;
/**
* 订单编号
*/
private Integer orderId;
/**
* 订单号 保存一个冗余
*/
private String orderNo;
/**
* 订单 item 编号
*/
private Integer orderItemId;
///
/// 时间信息
/**
* 创建时间
*/
private Date createTime;
/**
* 同意时间
*/
private Date approvalTime;
/**
* 物流时间填写物流单号时间
*/
private Date logisticsTime;
/**
* 收货时间
*/
private Date receiverTime;
/**
* 成交时间确认时间
*/
private Date closingTime;
///
/// 其他
/**
* 订单类型
*
* - 0 Order 订单 对整个订单退货
* - 1 OrderItem 订单 对订单某一个商品退货
*/
private Integer orderType;
/**
* 状态
*
* - 0退货申请
* - 1申请成功
* - 2申请失败
* - 3退货中
* - 4退货成功
*/
private Integer status;
@Override
public String toString() {
return "OrderReturnDO{" +
"id=" + id +
", orderId=" + orderId +
", orderNo='" + orderNo + '\'' +
", orderItemId=" + orderItemId +
", createTime=" + createTime +
", approvalTime=" + approvalTime +
", logisticsTime=" + logisticsTime +
", receiverTime=" + receiverTime +
", closingTime=" + closingTime +
", orderType=" + orderType +
", status=" + status +
'}';
}
public Integer getId() {
return id;
}
public OrderReturnDO setId(Integer id) {
this.id = id;
return this;
}
public Integer getOrderId() {
return orderId;
}
public OrderReturnDO setOrderId(Integer orderId) {
this.orderId = orderId;
return this;
}
public String getOrderNo() {
return orderNo;
}
public OrderReturnDO setOrderNo(String orderNo) {
this.orderNo = orderNo;
return this;
}
public Integer getOrderItemId() {
return orderItemId;
}
public OrderReturnDO setOrderItemId(Integer orderItemId) {
this.orderItemId = orderItemId;
return this;
}
public Date getCreateTime() {
return createTime;
}
public OrderReturnDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getApprovalTime() {
return approvalTime;
}
public OrderReturnDO setApprovalTime(Date approvalTime) {
this.approvalTime = approvalTime;
return this;
}
public Date getLogisticsTime() {
return logisticsTime;
}
public OrderReturnDO setLogisticsTime(Date logisticsTime) {
this.logisticsTime = logisticsTime;
return this;
}
public Date getReceiverTime() {
return receiverTime;
}
public OrderReturnDO setReceiverTime(Date receiverTime) {
this.receiverTime = receiverTime;
return this;
}
public Date getClosingTime() {
return closingTime;
}
public OrderReturnDO setClosingTime(Date closingTime) {
this.closingTime = closingTime;
return this;
}
public Integer getOrderType() {
return orderType;
}
public OrderReturnDO setOrderType(Integer orderType) {
this.orderType = orderType;
return this;
}
public Integer getStatus() {
return status;
}
public OrderReturnDO setStatus(Integer status) {
this.status = status;
return this;
}
}

View File

@ -0,0 +1,5 @@
## 订单
TODO