IncrementOrderVo.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.fdkankan.manage.vo.response;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import jdk.nashorn.internal.ir.annotations.Ignore;
  5. import lombok.Data;
  6. import java.math.BigDecimal;
  7. @Data
  8. public class IncrementOrderVo {
  9. @ExcelIgnore
  10. private Long id;
  11. @ExcelIgnore
  12. private String createTime; //下单时间
  13. @ExcelProperty("下单时间")
  14. private String tradeTime; //下单时间
  15. @ExcelProperty("订单号")
  16. private String orderSn; //订单号
  17. @ExcelProperty("用户账号")
  18. private String userName; //用户账号
  19. @ExcelProperty("订单金额")
  20. private BigDecimal amount; //订单金额
  21. @ExcelProperty("数量")
  22. private BigDecimal count; //数量
  23. @ExcelProperty("支付方式")
  24. private String payType; //支付方式 付款方式,0表示微信,1表示支付宝,2表示paypal,3表示其他,4表示货到付款
  25. @ExcelProperty("交易号")
  26. private String number; //交易号
  27. @ExcelProperty("付款状态")
  28. private String payStatus; //付款状态(状态,0或-1表示未付款,-2表示已退款,1表示已付款
  29. private Integer timeZoneOff;
  30. public String getPayType() {
  31. switch (payType){
  32. case "0" : return "微信";
  33. case "1" : return "支付宝";
  34. case "2" : return "paypal";
  35. case "3" : return "其他";
  36. case "4" : return "货到付款";
  37. default: return "";
  38. }
  39. }
  40. public String getPayStatus() {
  41. switch (payStatus){
  42. case "-1" :
  43. case "0" :
  44. return "未付款";
  45. case "-2" : return "已退款";
  46. case "1" : return "已付款";
  47. default: return "";
  48. }
  49. }
  50. }