| | |
| | | package cc.mrbird.febs.mall.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | 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 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; |
| | | } |
| | | } |
| | | } |
| | | |