package com.panzhihua.service_community.model.dos;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
|
/**
|
* @auther lyq
|
* @create 2021-04-14 15:03:01
|
* @describe 订单表实体类
|
*/
|
|
@Data
|
@TableName("com_shop_order")
|
public class ComShopOrderDO implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 订单id
|
*/
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 店铺id
|
*/
|
private Long storeId;
|
|
/**
|
* 用户id
|
*/
|
private Long userId;
|
|
/**
|
* 订单号
|
*/
|
private String orderNo;
|
|
/**
|
* 支付单号
|
*/
|
private String payNo;
|
|
/**
|
* 微信交易单号
|
*/
|
private String wxTardeNo;
|
|
/**
|
* 订单状态(1.待付款 2.代发货 3.待收货 4.待评价 5.已完成 6.已取消)
|
*/
|
private Integer status;
|
|
/**
|
* 支付状态(1.未支付 2.已支付)
|
*/
|
private Integer payStatus;
|
|
/**
|
* 订单收货人id
|
*/
|
private Long receiverId;
|
|
/**
|
* 删除状态(1.未删除 2.已删除)
|
*/
|
private Integer deleteStatus;
|
|
/**
|
* 订单总金额
|
*/
|
private BigDecimal totalAmount;
|
|
/**
|
* 优惠总金额
|
*/
|
private BigDecimal discountAmount;
|
|
/**
|
* 支付总金额
|
*/
|
private BigDecimal payAmount;
|
|
/**
|
* 支付方式(1.微信支付)
|
*/
|
private Integer payType;
|
|
/**
|
* 支付时间
|
*/
|
private Date payTime;
|
|
/**
|
* 配送方式(1.商家配送 2.快递物流)
|
*/
|
private Integer deliveryType;
|
|
/**
|
* 订单发货状态(1.未发货 2.已发货)
|
*/
|
private Integer deliveryStatus;
|
|
/**
|
* 物流公司
|
*/
|
private String logisticsCompany;
|
|
/**
|
* 物流单号
|
*/
|
private String logisticsNo;
|
|
/**
|
* 订单备注
|
*/
|
private String remark;
|
|
/**
|
* 发货时间
|
*/
|
private Date deliveryTime;
|
|
/**
|
* 下单时间
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Date createAt;
|
|
/**
|
* 修改时间
|
*/
|
@TableField(fill = FieldFill.UPDATE)
|
private Date updateAt;
|
|
/**
|
* 订单状态(1.待付款 2.代发货 3.待收货 4.待评价 5.已完成 6.已取消)
|
*/
|
public interface status{
|
int dfk = 1;
|
int dfh = 2;
|
int dsh = 3;
|
int dpj = 4;
|
int ywc = 5;
|
int yqx = 6;
|
}
|
|
/**
|
* 支付状态(1.未支付 2.已支付)
|
*/
|
public interface payStatus{
|
int no = 1;
|
int yes = 2;
|
}
|
|
/**
|
* 删除状态(1.未删除 2.已删除)
|
*/
|
public interface deleteStatus{
|
int no = 1;
|
int yes = 2;
|
}
|
|
/**
|
* 支付方式(1.微信支付)
|
*/
|
public interface payType{
|
int wx = 1;
|
}
|
|
/**
|
* 配送方式(1.商家配送 2.快递物流)
|
*/
|
public interface deliveryType{
|
int store = 1;
|
int express = 2;
|
}
|
|
/**
|
* 订单发货状态(1.未发货 2.已发货)
|
*/
|
public interface deliveryStatus{
|
int no = 1;
|
int yes = 2;
|
}
|
|
@Override
|
public String toString() {
|
return "ComShopOrderDO{" +
|
"id=" + id +
|
", storeId=" + storeId +
|
", userId=" + userId +
|
", orderNo=" + orderNo +
|
", payNo=" + payNo +
|
", wxTardeNo=" + wxTardeNo +
|
", status=" + status +
|
", payStatus=" + payStatus +
|
", receiverId=" + receiverId +
|
", deleteStatus=" + deleteStatus +
|
", totalAmount=" + totalAmount +
|
", discountAmount=" + discountAmount +
|
", payAmount=" + payAmount +
|
", payType=" + payType +
|
", payTime=" + payTime +
|
", deliveryType=" + deliveryType +
|
", deliveryStatus=" + deliveryStatus +
|
", logisticsCompany=" + logisticsCompany +
|
", logisticsNo=" + logisticsNo +
|
", createAt=" + createAt +
|
", updateAt=" + updateAt +
|
"}";
|
}
|
}
|