- 调整订单实现 改为 extends BaseDO
- 调整订单结构 合并 hasReturnExchange 状态 - 添加 退货换货 商品idpull/1/head
parent
41674407ab
commit
2ee7004f6e
|
@ -1,5 +1,7 @@
|
||||||
package cn.iocoder.mall.order.dataobject;
|
package cn.iocoder.mall.order.dataobject;
|
||||||
|
|
||||||
|
import cn.iocoder.common.framework.dataobject.BaseDO;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
@ -9,7 +11,7 @@ import java.util.Date;
|
||||||
* @author Sin
|
* @author Sin
|
||||||
* @time 2019-03-16 13:49
|
* @time 2019-03-16 13:49
|
||||||
*/
|
*/
|
||||||
public class OrderDO implements Serializable {
|
public class OrderDO extends BaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
|
@ -31,10 +33,6 @@ public class OrderDO implements Serializable {
|
||||||
///
|
///
|
||||||
/// 时间信息
|
/// 时间信息
|
||||||
|
|
||||||
/**
|
|
||||||
* 创建时间
|
|
||||||
*/
|
|
||||||
private Date createTime;
|
|
||||||
/**
|
/**
|
||||||
* 付款时间
|
* 付款时间
|
||||||
*/
|
*/
|
||||||
|
@ -58,24 +56,20 @@ public class OrderDO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 是否退货
|
* 是否退货
|
||||||
*
|
*
|
||||||
* - 0、no
|
* - 0、没有
|
||||||
* - 1、yes
|
* - 1、换货
|
||||||
|
* - 2、退货
|
||||||
|
* - 3、换货 + 退货
|
||||||
*/
|
*/
|
||||||
private Integer hasReturn;
|
private Integer hasReturnExchange;
|
||||||
/**
|
|
||||||
* 是否换货
|
|
||||||
*
|
|
||||||
* - 0、no
|
|
||||||
* - 1、yes
|
|
||||||
*/
|
|
||||||
private Integer hasExchange;
|
|
||||||
/**
|
/**
|
||||||
* 状态(如果有多个商品分开发货需要全部商品发完才会改变状态)
|
* 状态(如果有多个商品分开发货需要全部商品发完才会改变状态)
|
||||||
*
|
*
|
||||||
* - 0、代付款
|
* - 0、待付款
|
||||||
* - 1、已付款
|
* - 1、待发货
|
||||||
* - 2、已退款
|
* - 2、待收获
|
||||||
* - 3、已完成
|
* - 3、已完成
|
||||||
|
* - 4、已关闭
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
/**
|
/**
|
||||||
|
@ -97,13 +91,11 @@ public class OrderDO implements Serializable {
|
||||||
", orderLogisticsId=" + orderLogisticsId +
|
", orderLogisticsId=" + orderLogisticsId +
|
||||||
", orderNo='" + orderNo + '\'' +
|
", orderNo='" + orderNo + '\'' +
|
||||||
", price=" + price +
|
", price=" + price +
|
||||||
", createTime=" + createTime +
|
|
||||||
", paymentTime=" + paymentTime +
|
", paymentTime=" + paymentTime +
|
||||||
", deliveryTime=" + deliveryTime +
|
", deliveryTime=" + deliveryTime +
|
||||||
", receiverTime=" + receiverTime +
|
", receiverTime=" + receiverTime +
|
||||||
", closingTime=" + closingTime +
|
", closingTime=" + closingTime +
|
||||||
", hasReturn=" + hasReturn +
|
", hasReturnExchange=" + hasReturnExchange +
|
||||||
", hasExchange=" + hasExchange +
|
|
||||||
", status=" + status +
|
", status=" + status +
|
||||||
", deleteStatus=" + deleteStatus +
|
", deleteStatus=" + deleteStatus +
|
||||||
", remark='" + remark + '\'' +
|
", remark='" + remark + '\'' +
|
||||||
|
@ -146,15 +138,6 @@ public class OrderDO implements Serializable {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getCreateTime() {
|
|
||||||
return createTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OrderDO setCreateTime(Date createTime) {
|
|
||||||
this.createTime = createTime;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getPaymentTime() {
|
public Date getPaymentTime() {
|
||||||
return paymentTime;
|
return paymentTime;
|
||||||
}
|
}
|
||||||
|
@ -191,21 +174,12 @@ public class OrderDO implements Serializable {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getHasReturn() {
|
public Integer getHasReturnExchange() {
|
||||||
return hasReturn;
|
return hasReturnExchange;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OrderDO setHasReturn(Integer hasReturn) {
|
public OrderDO setHasReturnExchange(Integer hasReturnExchange) {
|
||||||
this.hasReturn = hasReturn;
|
this.hasReturnExchange = hasReturnExchange;
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getHasExchange() {
|
|
||||||
return hasExchange;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OrderDO setHasExchange(Integer hasExchange) {
|
|
||||||
this.hasExchange = hasExchange;
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package cn.iocoder.mall.order.dataobject;
|
package cn.iocoder.mall.order.dataobject;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import cn.iocoder.common.framework.dataobject.BaseDO;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -9,7 +10,7 @@ import java.util.Date;
|
||||||
* @author Sin
|
* @author Sin
|
||||||
* @time 2019-03-19 19:48
|
* @time 2019-03-19 19:48
|
||||||
*/
|
*/
|
||||||
public class OrderExchangeDO implements Serializable {
|
public class OrderExchangeDO extends BaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
|
@ -23,6 +24,14 @@ public class OrderExchangeDO implements Serializable {
|
||||||
* 订单编号
|
* 订单编号
|
||||||
*/
|
*/
|
||||||
private String orderNo;
|
private String orderNo;
|
||||||
|
/**
|
||||||
|
* 商品id(保存一个冗余,如果一个订单下存在多个商品,会有很大的作用)
|
||||||
|
*/
|
||||||
|
private String skuId;
|
||||||
|
/**
|
||||||
|
* 换货商品id
|
||||||
|
*/
|
||||||
|
private String exchangeSkuId;
|
||||||
/**
|
/**
|
||||||
* 换货物流id
|
* 换货物流id
|
||||||
*/
|
*/
|
||||||
|
@ -76,6 +85,8 @@ public class OrderExchangeDO implements Serializable {
|
||||||
"id=" + id +
|
"id=" + id +
|
||||||
", orderId=" + orderId +
|
", orderId=" + orderId +
|
||||||
", orderNo='" + orderNo + '\'' +
|
", orderNo='" + orderNo + '\'' +
|
||||||
|
", skuId='" + skuId + '\'' +
|
||||||
|
", exchangeSkuId='" + exchangeSkuId + '\'' +
|
||||||
", exchangeOrderLogisticsId=" + exchangeOrderLogisticsId +
|
", exchangeOrderLogisticsId=" + exchangeOrderLogisticsId +
|
||||||
", receiverOrderLogisticsId=" + receiverOrderLogisticsId +
|
", receiverOrderLogisticsId=" + receiverOrderLogisticsId +
|
||||||
", createTime=" + createTime +
|
", createTime=" + createTime +
|
||||||
|
@ -114,6 +125,24 @@ public class OrderExchangeDO implements Serializable {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSkuId() {
|
||||||
|
return skuId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrderExchangeDO setSkuId(String skuId) {
|
||||||
|
this.skuId = skuId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExchangeSkuId() {
|
||||||
|
return exchangeSkuId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrderExchangeDO setExchangeSkuId(String exchangeSkuId) {
|
||||||
|
this.exchangeSkuId = exchangeSkuId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getExchangeOrderLogisticsId() {
|
public Integer getExchangeOrderLogisticsId() {
|
||||||
return exchangeOrderLogisticsId;
|
return exchangeOrderLogisticsId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package cn.iocoder.mall.order.dataobject;
|
package cn.iocoder.mall.order.dataobject;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import cn.iocoder.common.framework.dataobject.BaseDO;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -9,7 +10,7 @@ import java.util.Date;
|
||||||
* @author Sin
|
* @author Sin
|
||||||
* @time 2019-03-16 14:03
|
* @time 2019-03-16 14:03
|
||||||
*/
|
*/
|
||||||
public class OrderItemDO implements Serializable {
|
public class OrderItemDO extends BaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编号
|
* 编号
|
||||||
|
@ -26,7 +27,7 @@ public class OrderItemDO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 商品编号
|
* 商品编号
|
||||||
*/
|
*/
|
||||||
private String commodityId;
|
private String skuId;
|
||||||
/**
|
/**
|
||||||
* 数量
|
* 数量
|
||||||
*/
|
*/
|
||||||
|
@ -80,10 +81,11 @@ public class OrderItemDO implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*
|
*
|
||||||
* - 0、代付款
|
* - 0、待付款
|
||||||
* - 1、已付款
|
* - 1、待发货
|
||||||
* - 2、已退款
|
* - 2、待收获
|
||||||
* - 3、已完成
|
* - 3、已完成
|
||||||
|
* - 4、已关闭
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
@ -93,7 +95,7 @@ public class OrderItemDO implements Serializable {
|
||||||
"id=" + id +
|
"id=" + id +
|
||||||
", orderId=" + orderId +
|
", orderId=" + orderId +
|
||||||
", orderNo='" + orderNo + '\'' +
|
", orderNo='" + orderNo + '\'' +
|
||||||
", commodityId='" + commodityId + '\'' +
|
", skuId='" + skuId + '\'' +
|
||||||
", quantity=" + quantity +
|
", quantity=" + quantity +
|
||||||
", price=" + price +
|
", price=" + price +
|
||||||
", createTime=" + createTime +
|
", createTime=" + createTime +
|
||||||
|
@ -134,12 +136,12 @@ public class OrderItemDO implements Serializable {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCommodityId() {
|
public String getSkuId() {
|
||||||
return commodityId;
|
return skuId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OrderItemDO setCommodityId(String commodityId) {
|
public OrderItemDO setSkuId(String skuId) {
|
||||||
this.commodityId = commodityId;
|
this.skuId = skuId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,10 +163,12 @@ public class OrderItemDO implements Serializable {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Date getCreateTime() {
|
public Date getCreateTime() {
|
||||||
return createTime;
|
return createTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public OrderItemDO setCreateTime(Date createTime) {
|
public OrderItemDO setCreateTime(Date createTime) {
|
||||||
this.createTime = createTime;
|
this.createTime = createTime;
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package cn.iocoder.mall.order.dataobject;
|
package cn.iocoder.mall.order.dataobject;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import cn.iocoder.common.framework.dataobject.BaseDO;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单物流信息
|
* 订单物流信息
|
||||||
|
@ -8,7 +8,7 @@ import java.io.Serializable;
|
||||||
* @author Sin
|
* @author Sin
|
||||||
* @time 2019-03-19 20:47
|
* @time 2019-03-19 20:47
|
||||||
*/
|
*/
|
||||||
public class OrderLogisticsDO implements Serializable {
|
public class OrderLogisticsDO extends BaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package cn.iocoder.mall.order.dataobject;
|
package cn.iocoder.mall.order.dataobject;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import cn.iocoder.common.framework.dataobject.BaseDO;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -11,7 +12,7 @@ import java.util.Date;
|
||||||
* @author Sin
|
* @author Sin
|
||||||
* @time 2019-03-19 20:48
|
* @time 2019-03-19 20:48
|
||||||
*/
|
*/
|
||||||
public class OrderLogisticsDetailDO implements Serializable {
|
public class OrderLogisticsDetailDO extends BaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* id
|
* id
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package cn.iocoder.mall.order.dataobject;
|
package cn.iocoder.mall.order.dataobject;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import cn.iocoder.common.framework.dataobject.BaseDO;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -9,7 +10,7 @@ import java.util.Date;
|
||||||
* @author Sin
|
* @author Sin
|
||||||
* @time 2019-03-19 19:48
|
* @time 2019-03-19 19:48
|
||||||
*/
|
*/
|
||||||
public class OrderReturnDO implements Serializable {
|
public class OrderReturnDO extends BaseDO {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编号自动增长
|
* 编号自动增长
|
||||||
|
@ -27,6 +28,10 @@ public class OrderReturnDO implements Serializable {
|
||||||
* 订单 item 编号
|
* 订单 item 编号
|
||||||
*/
|
*/
|
||||||
private Integer orderItemId;
|
private Integer orderItemId;
|
||||||
|
/**
|
||||||
|
* 商品编号(保存一个冗余,如果一个订单下存在多个商品,会有很大的作用)
|
||||||
|
*/
|
||||||
|
private String skuId;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 时间信息
|
/// 时间信息
|
||||||
|
@ -80,6 +85,7 @@ public class OrderReturnDO implements Serializable {
|
||||||
", orderId=" + orderId +
|
", orderId=" + orderId +
|
||||||
", orderNo='" + orderNo + '\'' +
|
", orderNo='" + orderNo + '\'' +
|
||||||
", orderItemId=" + orderItemId +
|
", orderItemId=" + orderItemId +
|
||||||
|
", skuId='" + skuId + '\'' +
|
||||||
", createTime=" + createTime +
|
", createTime=" + createTime +
|
||||||
", approvalTime=" + approvalTime +
|
", approvalTime=" + approvalTime +
|
||||||
", logisticsTime=" + logisticsTime +
|
", logisticsTime=" + logisticsTime +
|
||||||
|
@ -126,6 +132,15 @@ public class OrderReturnDO implements Serializable {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSkuId() {
|
||||||
|
return skuId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrderReturnDO setSkuId(String skuId) {
|
||||||
|
this.skuId = skuId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Date getCreateTime() {
|
public Date getCreateTime() {
|
||||||
return createTime;
|
return createTime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue