Merge remote-tracking branch 'origin/master'

pull/1/head
YunaiV 2019-03-20 23:23:50 +08:00
commit e3a14c2abb
11 changed files with 279 additions and 64 deletions

View File

@ -1,11 +1,12 @@
package cn.iocoder.common.framework.dataobject;
import java.io.Serializable;
import java.util.Date;
/**
*
*/
public class BaseDO {
public class BaseDO implements Serializable {
/**
* -

View File

@ -0,0 +1,40 @@
package cn.iocoder.mall.order.constants;
/**
*
*
* @author Sin
* @time 2019-03-20 21:17
*/
public enum OrderExchangeReasonEnum {
REASON_000(0, "其他"),
REASON_001(1, "尺码不合适"),
REASON_002(2, "质量问题"),
REASON_003(3, "不喜欢"),
;
private Integer value;
private String name;
OrderExchangeReasonEnum(Integer value, String name) {
this.value = value;
this.name = name;
}
@Override
public String toString() {
return "OrderCommonReasonEnum{" +
"value=" + value +
", name=" + name +
'}';
}
public Integer getValue() {
return value;
}
public String getName() {
return name;
}}

View File

@ -0,0 +1,52 @@
package cn.iocoder.mall.order.constants;
/**
* 退
*
* @author Sin
* @time 2019-03-20 21:17
*/
public enum OrderReturnReasonEnum {
///
/// 未发货情况
REASON_000(0, "其他"),
REASON_001(1, "拍错/勿拍/多拍"),
REASON_002(2, "缺货"),
///
/// 已发货情况
REASON_020(20, "七天无理由"),
REASON_021(21, "质量问题"),
REASON_022(22, "不想要了"),
;
// TODO: 2019-03-20 Sin 已发货情况 补全,需要对照一下 淘宝
private Integer value;
private String name;
OrderReturnReasonEnum(Integer value, String name) {
this.value = value;
this.name = name;
}
@Override
public String toString() {
return "OrderCommonReasonEnum{" +
"value=" + value +
", name=" + name +
'}';
}
public Integer getValue() {
return value;
}
public String getName() {
return name;
}}

View File

@ -0,0 +1,7 @@
/**
*
*
* @author Sin
* @time 2019-03-20 21:16
*/
package cn.iocoder.mall.order.constants;

View File

@ -1,5 +1,7 @@
package cn.iocoder.mall.order.dataobject;
import cn.iocoder.common.framework.dataobject.BaseDO;
import java.io.Serializable;
import java.util.Date;
@ -9,7 +11,7 @@ import java.util.Date;
* @author Sin
* @time 2019-03-16 13:49
*/
public class OrderDO implements Serializable {
public class OrderDO extends BaseDO {
/**
* id
@ -31,10 +33,6 @@ public class OrderDO implements Serializable {
///
/// 时间信息
/**
*
*/
private Date createTime;
/**
*
*/
@ -58,24 +56,20 @@ public class OrderDO implements Serializable {
/**
* 退
*
* - 0no
* - 1yes
* - 0
* - 1
* - 2退
* - 3 + 退
*/
private Integer hasReturn;
/**
*
*
* - 0no
* - 1yes
*/
private Integer hasExchange;
private Integer hasReturnExchange;
/**
* ()
*
* - 0
* - 1
* - 2退
* - 0
* - 1
* - 2
* - 3
* - 4
*/
private Integer status;
/**
@ -97,13 +91,11 @@ public class OrderDO implements Serializable {
", orderLogisticsId=" + orderLogisticsId +
", orderNo='" + orderNo + '\'' +
", price=" + price +
", createTime=" + createTime +
", paymentTime=" + paymentTime +
", deliveryTime=" + deliveryTime +
", receiverTime=" + receiverTime +
", closingTime=" + closingTime +
", hasReturn=" + hasReturn +
", hasExchange=" + hasExchange +
", hasReturnExchange=" + hasReturnExchange +
", status=" + status +
", deleteStatus=" + deleteStatus +
", remark='" + remark + '\'' +
@ -146,15 +138,6 @@ public class OrderDO implements Serializable {
return this;
}
public Date getCreateTime() {
return createTime;
}
public OrderDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;
}
public Date getPaymentTime() {
return paymentTime;
}
@ -191,21 +174,12 @@ public class OrderDO implements Serializable {
return this;
}
public Integer getHasReturn() {
return hasReturn;
public Integer getHasReturnExchange() {
return hasReturnExchange;
}
public OrderDO setHasReturn(Integer hasReturn) {
this.hasReturn = hasReturn;
return this;
}
public Integer getHasExchange() {
return hasExchange;
}
public OrderDO setHasExchange(Integer hasExchange) {
this.hasExchange = hasExchange;
public OrderDO setHasReturnExchange(Integer hasReturnExchange) {
this.hasReturnExchange = hasReturnExchange;
return this;
}

View File

@ -1,6 +1,7 @@
package cn.iocoder.mall.order.dataobject;
import java.io.Serializable;
import cn.iocoder.common.framework.dataobject.BaseDO;
import java.util.Date;
/**
@ -9,7 +10,7 @@ import java.util.Date;
* @author Sin
* @time 2019-03-19 19:48
*/
public class OrderExchangeDO implements Serializable {
public class OrderExchangeDO extends BaseDO {
/**
* id
@ -23,6 +24,14 @@ public class OrderExchangeDO implements Serializable {
*
*/
private String orderNo;
/**
* id
*/
private String skuId;
/**
* id
*/
private String exchangeSkuId;
/**
* id
*/
@ -32,6 +41,22 @@ public class OrderExchangeDO implements Serializable {
*/
private Integer receiverOrderLogisticsId;
///
/// 原因
/**
* ()
*
* {@link cn.iocoder.mall.order.constants.OrderExchangeReasonEnum}
*/
private Integer orderReasonId;
/**
*
*
* {@link cn.iocoder.mall.order.constants.OrderExchangeReasonEnum#REASON_000}
*/
private String reason;
///
/// 时间信息
@ -76,8 +101,12 @@ public class OrderExchangeDO implements Serializable {
"id=" + id +
", orderId=" + orderId +
", orderNo='" + orderNo + '\'' +
", skuId='" + skuId + '\'' +
", exchangeSkuId='" + exchangeSkuId + '\'' +
", exchangeOrderLogisticsId=" + exchangeOrderLogisticsId +
", receiverOrderLogisticsId=" + receiverOrderLogisticsId +
", orderReasonId=" + orderReasonId +
", reason='" + reason + '\'' +
", createTime=" + createTime +
", paymentTime=" + paymentTime +
", deliveryTime=" + deliveryTime +
@ -114,6 +143,24 @@ public class OrderExchangeDO implements Serializable {
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() {
return exchangeOrderLogisticsId;
}
@ -132,10 +179,30 @@ public class OrderExchangeDO implements Serializable {
return this;
}
public Integer getOrderReasonId() {
return orderReasonId;
}
public OrderExchangeDO setOrderReasonId(Integer orderReasonId) {
this.orderReasonId = orderReasonId;
return this;
}
public String getReason() {
return reason;
}
public OrderExchangeDO setReason(String reason) {
this.reason = reason;
return this;
}
@Override
public Date getCreateTime() {
return createTime;
}
@Override
public OrderExchangeDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;

View File

@ -1,6 +1,7 @@
package cn.iocoder.mall.order.dataobject;
import java.io.Serializable;
import cn.iocoder.common.framework.dataobject.BaseDO;
import java.util.Date;
/**
@ -9,7 +10,7 @@ import java.util.Date;
* @author Sin
* @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
* - 1
* - 2退
* - 0
* - 1
* - 2
* - 3
* - 4
*/
private Integer status;
@ -93,7 +95,7 @@ public class OrderItemDO implements Serializable {
"id=" + id +
", orderId=" + orderId +
", orderNo='" + orderNo + '\'' +
", commodityId='" + commodityId + '\'' +
", skuId='" + skuId + '\'' +
", quantity=" + quantity +
", price=" + price +
", createTime=" + createTime +
@ -134,12 +136,12 @@ public class OrderItemDO implements Serializable {
return this;
}
public String getCommodityId() {
return commodityId;
public String getSkuId() {
return skuId;
}
public OrderItemDO setCommodityId(String commodityId) {
this.commodityId = commodityId;
public OrderItemDO setSkuId(String skuId) {
this.skuId = skuId;
return this;
}
@ -161,10 +163,12 @@ public class OrderItemDO implements Serializable {
return this;
}
@Override
public Date getCreateTime() {
return createTime;
}
@Override
public OrderItemDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;

View File

@ -1,6 +1,6 @@
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
* @time 2019-03-19 20:47
*/
public class OrderLogisticsDO implements Serializable {
public class OrderLogisticsDO extends BaseDO {
/**
* id

View File

@ -1,6 +1,7 @@
package cn.iocoder.mall.order.dataobject;
import java.io.Serializable;
import cn.iocoder.common.framework.dataobject.BaseDO;
import java.util.Date;
/**
@ -11,7 +12,7 @@ import java.util.Date;
* @author Sin
* @time 2019-03-19 20:48
*/
public class OrderLogisticsDetailDO implements Serializable {
public class OrderLogisticsDetailDO extends BaseDO {
/**
* id

View File

@ -1,6 +1,7 @@
package cn.iocoder.mall.order.dataobject;
import java.io.Serializable;
import cn.iocoder.common.framework.dataobject.BaseDO;
import java.util.Date;
/**
@ -9,7 +10,7 @@ import java.util.Date;
* @author Sin
* @time 2019-03-19 19:48
*/
public class OrderReturnDO implements Serializable {
public class OrderReturnDO extends BaseDO {
/**
*
@ -27,6 +28,26 @@ public class OrderReturnDO implements Serializable {
* item
*/
private Integer orderItemId;
/**
*
*/
private String skuId;
///
/// 退货原因
/**
* 退()
*
* {@link cn.iocoder.mall.order.constants.OrderReturnReasonEnum}
*/
private Integer orderReasonId;
/**
*
*
* {@link cn.iocoder.mall.order.constants.OrderReturnReasonEnum#REASON_000}
*/
private String reason;
///
/// 时间信息
@ -80,6 +101,9 @@ public class OrderReturnDO implements Serializable {
", orderId=" + orderId +
", orderNo='" + orderNo + '\'' +
", orderItemId=" + orderItemId +
", skuId='" + skuId + '\'' +
", orderReasonId=" + orderReasonId +
", reason='" + reason + '\'' +
", createTime=" + createTime +
", approvalTime=" + approvalTime +
", logisticsTime=" + logisticsTime +
@ -126,10 +150,39 @@ public class OrderReturnDO implements Serializable {
return this;
}
public String getSkuId() {
return skuId;
}
public OrderReturnDO setSkuId(String skuId) {
this.skuId = skuId;
return this;
}
public Integer getOrderReasonId() {
return orderReasonId;
}
public OrderReturnDO setOrderReasonId(Integer orderReasonId) {
this.orderReasonId = orderReasonId;
return this;
}
public String getReason() {
return reason;
}
public OrderReturnDO setReason(String reason) {
this.reason = reason;
return this;
}
@Override
public Date getCreateTime() {
return createTime;
}
@Override
public OrderReturnDO setCreateTime(Date createTime) {
this.createTime = createTime;
return this;

View File

@ -3,3 +3,19 @@
TODO
**退货**
1. 商家未发货,退货原因
- 拍错/勿拍/多拍
- 缺货
2. 商家已发货,退货原因
- 七天无理由
- 质量问题
- 不想要了
- 其他