package cc.mrbird.febs.mall.vo;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* @author wzy
|
* @date 2021-09-22
|
**/
|
@Data
|
@ApiModel(value = "OrderDetailVo", description = "订单明细返回参数类")
|
public class OrderDetailVo {
|
|
@ApiModelProperty(value = "订单ID")
|
private Long id;
|
|
@ApiModelProperty(value = "订单编号")
|
private String orderNo;
|
|
@ApiModelProperty(value = "下单时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date orderTime;
|
|
@ApiModelProperty(value = "支付方式")
|
private String payMethod;
|
|
@ApiModelProperty(value = "支付方式类型")
|
private Integer payMethodType;
|
|
@ApiModelProperty(value = "状态")
|
private Integer status;
|
|
@ApiModelProperty(value = "订单金额")
|
private BigDecimal amount;
|
|
@ApiModelProperty(value = "收货人姓名")
|
private String name;
|
|
@ApiModelProperty(value = "收货人电话")
|
private String phone;
|
|
@ApiModelProperty(value = "收货人地址")
|
private String address;
|
|
@ApiModelProperty(value = "物流单号")
|
private String expressNo;
|
|
@ApiModelProperty(value = "物流公司")
|
private String expressCom;
|
|
@ApiModelProperty(value = "订单明细")
|
private List<OrderItemVo> items;
|
|
@ApiModelProperty(value = "订单退款信息")
|
private OrderRefundVo orderRefund;
|
|
@ApiModelProperty(value = "剩余时间")
|
private Long remainTime;
|
|
@ApiModelProperty(value = "运费")
|
private BigDecimal carriage;
|
|
public Integer getPayMethodType() {
|
if (this.payMethod == null) {
|
return 0;
|
}
|
switch (this.payMethod) {
|
case "微信支付" :
|
return 1;
|
case "支付宝支付" :
|
return 2;
|
case "积分支付" :
|
return 3;
|
default:
|
return 3;
|
}
|
}
|
|
@ApiModelProperty(value = "评价状态 1:待评价 2:已评价")
|
private Integer commentState;
|
//提货码
|
@ApiModelProperty(value = "提货码")
|
private String takeCode;
|
/**
|
* 自提点信息
|
*/
|
@ApiModelProperty(value = "团长姓名")
|
private String leaderName;
|
@ApiModelProperty(value = "团长电话")
|
private String leaderPhone;
|
@ApiModelProperty(value = "自提点图片")
|
private String addressPic;
|
@ApiModelProperty(value = "自提点省")
|
private String province;
|
@ApiModelProperty(value = "自提点市")
|
private String city;
|
@ApiModelProperty(value = "自提点区")
|
private String township;
|
@ApiModelProperty(value = "自提点名称")
|
private String addressArea;
|
@ApiModelProperty(value = "自提点详细地址")
|
private String detailAddress;
|
}
|