DownOrderVo.java 1.8 KB

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