| package com.matrix.system.shopXcx.bean; | 
|   | 
| import com.matrix.core.pojo.EntityDTO; | 
| import com.matrix.core.anotations.Extend; | 
| import com.matrix.core.tools.DateUtil; | 
| import org.springframework.format.annotation.DateTimeFormat; | 
|   | 
| import java.math.BigDecimal; | 
| import java.util.Date; | 
| import java.util.List; | 
|   | 
| /** | 
|  * @author jyy | 
|  * @description 订单表 | 
|  * @date 2019-06-10 10:58 | 
|  */ | 
| public class ShopOrder extends EntityDTO { | 
|   | 
|     /** | 
|      * 订单微信支付状态(待支付) | 
|      */ | 
|     public static final int ORDER_WX_STATUS_WAIT_PAY = 1; | 
|     /** | 
|      * 订单微信支付状态(支付成功) | 
|      */ | 
|     public static final int ORDER_WX_STATUS_PAY_SUCCESS = 2; | 
|     /** | 
|      * 订单微信支付状态(支付失败) | 
|      */ | 
|     public static final int ORDER_WX_STATUS_PAY_FAIL = 3; | 
|   | 
|     /** | 
|      * 订单支付状态(待支付) | 
|      */ | 
|     public static final int ORDER_PAY_STATUS_WAIT = 1; | 
|     /** | 
|      * 订单支付状态(支付成功) | 
|      */ | 
|     public static final int ORDER_PAY_STATUS_SUCCESS = 2; | 
|     /** | 
|      * 订单支付状态(支付失败) | 
|      */ | 
|     public static final int ORDER_PAY_STATUS_FAIL = 3; | 
|   | 
|     /** | 
|      * 订单状态(待付款) | 
|      */ | 
|     public static final int ORDER_STATUS_WAIT_PAY = 1; | 
|     /** | 
|      * 订单状态(待配送) | 
|      */ | 
|     public static final int ORDER_STATUS_WAIT_SEND = 2; | 
|     /** | 
|      * 订单状态(待收货) | 
|      */ | 
|     public static final int ORDER_STATUS_WAIT_RECEIVE = 3; | 
|     /** | 
|      * 订单状态(待评价) | 
|      */ | 
|     public static final int ORDER_STATUS_WAIT_REMARK = 4; | 
|     /** | 
|      * 订单状态(已评价) | 
|      */ | 
|     public static final int ORDER_STATUS_ALREADY_REMARK = 5; | 
|     /** | 
|      * 订单状态(申请退款) | 
|      */ | 
|     public static final int ORDER_STATUS_APPLY_MONEYBACK = 6; | 
|     /** | 
|      * 订单状态(退款成功) | 
|      */ | 
|     public static final int ORDER_STATUS_MONEYBACK_SUCCESS = 7; | 
|     /** | 
|      * 订单状态(退款拒绝) | 
|      */ | 
|     public static final int ORDER_STATUS_MONEYBACK_REFUSE = 8; | 
|     /** | 
|      * 订单状态(已取消) | 
|      */ | 
|     public static final int ORDER_STATUS_CANCEL = 9; | 
|     /** | 
|      * 订单类型 1产品, | 
|      */ | 
|     public static final int ORDER_TYPE_GOODS = 1; | 
|     /** | 
|      * 订单类型 2 服务 | 
|      */ | 
|     public static final int ORDER_TYPE_SERVICE = 2; | 
|   | 
|     /** | 
|      * 订单是否已提现 是 | 
|      */ | 
|     public static final int ORDER_APPLY_STATUS_Y = 1; | 
|   | 
|     /** | 
|      * 订单是否已提现 否 | 
|      */ | 
|     public static final int ORDER_APPLY_STATUS_N = 2; | 
|   | 
|     /** | 
|      * 普通 | 
|      */ | 
|     public static final int ACTIVITY_TYPE_NORMAL = 1; | 
|   | 
|     /** | 
|      * 拼团 | 
|      */ | 
|     public static final int ACTIVITY_TYPE_GROUP = 2; | 
|   | 
|     /** | 
|      * 秒杀 | 
|      */ | 
|     public static final int ACTIVITY_TYPE_SECKILL = 3; | 
|   | 
|     /** | 
|      * 主键 | 
|      */ | 
|     private Integer id; | 
|     /** | 
|      * 订单类型 1,产品,2 服务 | 
|      */ | 
|     private Integer orderType; | 
|   | 
|     /** | 
|      * 订单编号 | 
|      */ | 
|     private String orderNo; | 
|   | 
|   | 
|     /** | 
|      * 订单金额 | 
|      */ | 
|     private BigDecimal orderMoney; | 
|   | 
|     /** | 
|      * 商品价格 | 
|      */ | 
|     private BigDecimal commodityPrice; | 
|   | 
|     /** | 
|      * 用户ID | 
|      */ | 
|     private String userId; | 
|   | 
|   | 
|     /** | 
|      * 下单时间 | 
|      */ | 
|     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|     private Date orderTime; | 
|   | 
|     /** | 
|      * 微信展示下单时间 | 
|      */ | 
|     private String orderTimeWx; | 
|   | 
|   | 
|     /** | 
|      * 支付状态(1=待支付,2=支付成功,3=支付失败) | 
|      */ | 
|     private Integer payStatus; | 
|   | 
|   | 
|     /** | 
|      * 优惠说明 | 
|      */ | 
|     private String discountExplain; | 
|   | 
|   | 
|     /** | 
|      * 优惠总金额 | 
|      */ | 
|     private BigDecimal discountAmount; | 
|   | 
|   | 
|     /** | 
|      * 订单状态(1=待付款,2=待配送,3=待收货,4=待评价, | 
|      * 5=已评价,6=申请退款,7=退款成功,8=退款拒绝,9=已取消) | 
|      */ | 
|     private Integer orderStatus; | 
|   | 
|   | 
|     /** | 
|      * 退款费用 | 
|      */ | 
|     private BigDecimal refundCharge; | 
|   | 
|   | 
|     /** | 
|      * 客户姓名 | 
|      */ | 
|     private String userName; | 
|   | 
|   | 
|     /** | 
|      * 客户电话 | 
|      */ | 
|     private String userTel; | 
|   | 
|   | 
|     /** | 
|      * 订单备注 | 
|      */ | 
|     private String remarks; | 
|   | 
|     /** | 
|      * 配送方式(1=物流,2=门店自取) | 
|      */ | 
|     private String shippingMethod; | 
|   | 
|     /** | 
|      * 配送门店ID | 
|      */ | 
|     private Integer storeId; | 
|   | 
|     /** | 
|      * 邮费 | 
|      */ | 
|     private BigDecimal postage; | 
|   | 
|   | 
|     /** | 
|      * 购买件数 | 
|      */ | 
|     private Integer purchaseQuantity; | 
|   | 
|   | 
|     /** | 
|      * 删除标识(1=是,2=否) | 
|      */ | 
|     private Integer delFlag; | 
|   | 
|   | 
|     /** | 
|      * 微信订单编号 | 
|      */ | 
|     private String wxOrderNo; | 
|   | 
|   | 
|     /** | 
|      * 微信支付结果(1=待支付,2=支付成功,3=支付失败) | 
|      */ | 
|     private Integer payResult; | 
|   | 
|   | 
|   | 
|     /** | 
|      * 提现状态 | 
|      */ | 
|     private Integer applyStatus; | 
|   | 
|     /** | 
|      * 门店名 | 
|      */ | 
|     @Extend | 
|     private String storeName; | 
|   | 
|     /** | 
|      * 订单详情列表 | 
|      */ | 
|     @Extend | 
|     private List<ShopOrderDetails> details; | 
|   | 
|     /** | 
|      * 支付时间 | 
|      */ | 
|     @Extend | 
|     private Date paymentTime; | 
|   | 
|     /** | 
|      * 微信展示支付时间 | 
|      */ | 
|     @Extend | 
|     private String paymentTimeWx; | 
|   | 
|     /** | 
|      * 开票数量 | 
|      */ | 
|     @Extend | 
|     private Integer invoiceCount; | 
|   | 
|     /** | 
|      * 发货信息 | 
|      */ | 
|     @Extend | 
|     private ShopDeliveryInfo deliveryInfo; | 
|   | 
|     private Long companyId; | 
|     public Long getCompanyId() { | 
|         return companyId; | 
|     } | 
|   | 
|     public void setCompanyId(Long companyId) { | 
|         this.companyId = companyId; | 
|     } | 
|     /** | 
|      * 活动类型 1-普通 2-拼团 3-秒杀 | 
|      */ | 
|     private Integer activityType; | 
|   | 
|   | 
|   | 
|     public Integer getApplyStatus() { | 
|         return applyStatus; | 
|     } | 
|   | 
|     public void setApplyStatus(Integer applyStatus) { | 
|         this.applyStatus = applyStatus; | 
|     } | 
|   | 
|     public Integer getId() { | 
|         return id; | 
|     } | 
|   | 
|     public Integer getActivityType() { | 
|         return activityType; | 
|     } | 
|   | 
|     public void setActivityType(Integer activityType) { | 
|         this.activityType = activityType; | 
|     } | 
|   | 
|     public void setId(Integer id) { | 
|         this.id = id; | 
|     } | 
|   | 
|     public Integer getOrderType() { | 
|         return orderType; | 
|     } | 
|   | 
|     public void setOrderType(Integer orderType) { | 
|         this.orderType = orderType; | 
|     } | 
|   | 
|     public String getOrderNo() { | 
|         return orderNo; | 
|     } | 
|   | 
|   | 
|     public void setOrderNo(String orderNo) { | 
|         this.orderNo = orderNo; | 
|     } | 
|   | 
|     public BigDecimal getOrderMoney() { | 
|         return orderMoney; | 
|     } | 
|   | 
|     public void setOrderMoney(BigDecimal orderMoney) { | 
|         this.orderMoney = orderMoney; | 
|     } | 
|   | 
|     public BigDecimal getCommodityPrice() { | 
|         return commodityPrice; | 
|     } | 
|   | 
|     public void setCommodityPrice(BigDecimal commodityPrice) { | 
|         this.commodityPrice = commodityPrice; | 
|     } | 
|   | 
|     public String getUserId() { | 
|         return userId; | 
|     } | 
|   | 
|     public void setUserId(String userId) { | 
|         this.userId = userId; | 
|     } | 
|   | 
|     public Date getOrderTime() { | 
|         return orderTime; | 
|     } | 
|   | 
|     public void setOrderTime(Date orderTime) { | 
|         this.orderTime = orderTime; | 
|     } | 
|   | 
|     public void setOrderTimeWx(String orderTimeWx) { | 
|         this.orderTimeWx = orderTimeWx; | 
|     } | 
|   | 
|     public Integer getPayStatus() { | 
|         return payStatus; | 
|     } | 
|   | 
|     public void setPayStatus(Integer payStatus) { | 
|         this.payStatus = payStatus; | 
|     } | 
|   | 
|     public String getDiscountExplain() { | 
|         return discountExplain; | 
|     } | 
|   | 
|     public void setDiscountExplain(String discountExplain) { | 
|         this.discountExplain = discountExplain; | 
|     } | 
|   | 
|     public BigDecimal getDiscountAmount() { | 
|         return discountAmount; | 
|     } | 
|   | 
|     public void setDiscountAmount(BigDecimal discountAmount) { | 
|         this.discountAmount = discountAmount; | 
|     } | 
|   | 
|     public Integer getOrderStatus() { | 
|         return orderStatus; | 
|     } | 
|   | 
|     public void setOrderStatus(Integer orderStatus) { | 
|         this.orderStatus = orderStatus; | 
|     } | 
|   | 
|     public BigDecimal getRefundCharge() { | 
|         return refundCharge; | 
|     } | 
|   | 
|     public void setRefundCharge(BigDecimal refundCharge) { | 
|         this.refundCharge = refundCharge; | 
|     } | 
|   | 
|     public String getUserName() { | 
|         return userName; | 
|     } | 
|   | 
|     public void setUserName(String userName) { | 
|         this.userName = userName; | 
|     } | 
|   | 
|     public String getUserTel() { | 
|         return userTel; | 
|     } | 
|   | 
|     public void setUserTel(String userTel) { | 
|         this.userTel = userTel; | 
|     } | 
|   | 
|     public String getRemarks() { | 
|         return remarks; | 
|     } | 
|   | 
|     public void setRemarks(String remarks) { | 
|         this.remarks = remarks; | 
|     } | 
|   | 
|     public String getShippingMethod() { | 
|         return shippingMethod; | 
|     } | 
|   | 
|     public void setShippingMethod(String shippingMethod) { | 
|         this.shippingMethod = shippingMethod; | 
|     } | 
|   | 
|     public Integer getStoreId() { | 
|         return storeId; | 
|     } | 
|   | 
|     public void setStoreId(Integer storeId) { | 
|         this.storeId = storeId; | 
|     } | 
|   | 
|     public BigDecimal getPostage() { | 
|         return postage; | 
|     } | 
|   | 
|     public void setPostage(BigDecimal postage) { | 
|         this.postage = postage; | 
|     } | 
|   | 
|     public Integer getPurchaseQuantity() { | 
|         return purchaseQuantity; | 
|     } | 
|   | 
|     public void setPurchaseQuantity(Integer purchaseQuantity) { | 
|         this.purchaseQuantity = purchaseQuantity; | 
|     } | 
|   | 
|     public Integer getDelFlag() { | 
|         return delFlag; | 
|     } | 
|   | 
|     public void setDelFlag(Integer delFlag) { | 
|         this.delFlag = delFlag; | 
|     } | 
|   | 
|     public String getWxOrderNo() { | 
|         return wxOrderNo; | 
|     } | 
|   | 
|     public void setWxOrderNo(String wxOrderNo) { | 
|         this.wxOrderNo = wxOrderNo; | 
|     } | 
|   | 
|     public Integer getPayResult() { | 
|         return payResult; | 
|     } | 
|   | 
|     public void setPayResult(Integer payResult) { | 
|         this.payResult = payResult; | 
|     } | 
|   | 
|     public String getStoreName() { | 
|         return storeName; | 
|     } | 
|   | 
|     public void setStoreName(String storeName) { | 
|         this.storeName = storeName; | 
|     } | 
|   | 
|     public List<ShopOrderDetails> getDetails() { | 
|         return details; | 
|     } | 
|   | 
|     public void setDetails(List<ShopOrderDetails> details) { | 
|         this.details = details; | 
|     } | 
|   | 
|     public Date getPaymentTime() { | 
|         return paymentTime; | 
|     } | 
|   | 
|     public void setPaymentTime(Date paymentTime) { | 
|         this.paymentTime = paymentTime; | 
|     } | 
|   | 
|     public void setPaymentTimeWx(String paymentTimeWx) { | 
|         this.paymentTimeWx = paymentTimeWx; | 
|     } | 
|   | 
|     public Integer getInvoiceCount() { | 
|         return invoiceCount; | 
|     } | 
|   | 
|     public void setInvoiceCount(Integer invoiceCount) { | 
|         this.invoiceCount = invoiceCount; | 
|     } | 
|   | 
|     public ShopDeliveryInfo getDeliveryInfo() { | 
|         return deliveryInfo; | 
|     } | 
|   | 
|     public void setDeliveryInfo(ShopDeliveryInfo deliveryInfo) { | 
|         this.deliveryInfo = deliveryInfo; | 
|     } | 
|   | 
|   | 
|   | 
|     public String getOrderTimeWx() { | 
|         if (this.orderTime == null) { | 
|             return ""; | 
|         } | 
|         return DateUtil.dateToString(this.orderTime, DateUtil.DATE_FORMAT_SS); | 
|     } | 
|   | 
|     public String getPaymentTimeWx() { | 
|         if (this.paymentTime == null) { | 
|             return ""; | 
|         } | 
|         return DateUtil.dateToString(this.paymentTime, DateUtil.DATE_FORMAT_SS); | 
|     } | 
| } |