12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package com.fdkankan.manage.vo.response;
- import com.alibaba.excel.annotation.ExcelProperty;
- import lombok.Data;
- import java.math.BigDecimal;
- @Data
- public class DownOrderVo {
- @ExcelProperty("ID")
- private Long id;
- @ExcelProperty("下单时间")
- private String createTime; //下单时间
- @ExcelProperty("订单号")
- private String orderSn; //订单号
- @ExcelProperty("用户账号")
- private String userName; //用户账号
- @ExcelProperty("相机sn码")
- private String snCode; //相机sn码
- @ExcelProperty("场景码")
- private String sceneNum; //场景码
- @ExcelProperty("订单金额")
- private BigDecimal amount; //订单金额
- @ExcelProperty("支付方式")
- private String payType; //支付方式 付款方式,0表示微信,1表示支付宝,2表示paypal,3表示其他,4表示货到付款
- @ExcelProperty("交易号")
- private String number; //交易号
- @ExcelProperty("付款状态")
- private String payStatus; //付款状态(状态,0或-1表示未付款,-2表示已退款,1表示已付款
- public String getPayType() {
- switch (payType){
- case "0" : return "微信";
- case "1" : return "支付宝";
- case "2" : return "paypal";
- case "3" : return "其他";
- case "4" : return "货到付款";
- default: return "";
- }
- }
- public String getPayStatus() {
- switch (payStatus){
- case "-1" :
- case "0" :
- return "未付款";
- case "-2" : return "已退款";
- case "1" : return "已付款";
- default: return "";
- }
- }
- }
|