LogListVoEn.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package com.fdkankan.agent.response;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import lombok.Data;
  5. @Data
  6. public class LogListVoEn {
  7. @ExcelIgnore
  8. private Integer type; //权益类型
  9. @ExcelIgnore
  10. private Integer giveType; //授权方式
  11. @ExcelIgnore
  12. private Long userId; //用户id
  13. @ExcelProperty("Authorization Time")
  14. private String createTime;
  15. @ExcelProperty("Type")
  16. private String typeStr;
  17. @ExcelProperty("Nickname")
  18. private String nickName;
  19. @ExcelProperty("Account")
  20. private String userName;
  21. @ExcelProperty("Email")
  22. private String email;
  23. @ExcelProperty("Authorizer")
  24. private String agentName;
  25. @ExcelProperty("Authorized Quantity")
  26. private Integer count;
  27. @ExcelIgnore
  28. private Integer totalTime;
  29. @ExcelProperty("Total duration of the authorization (year/month)")
  30. private String totalTimeStr;
  31. @ExcelProperty("Methods")
  32. private String giveTypeStr;
  33. public String getTypeStr() {
  34. if(type == null){
  35. return null;
  36. }
  37. switch (type){
  38. case 0 :return "Premium (Yearly)";
  39. case 1 :return "Senior (Monthly)";
  40. case 2 :return "Scene Download";
  41. }
  42. return typeStr;
  43. }
  44. public String getGiveTypeStr() {
  45. if(giveType == null){
  46. return null;
  47. }
  48. switch (giveType){
  49. case 0 :return "Dealer Authorization";
  50. case 1 :return "Dealer Renewals";
  51. case 2 :return "Official Website Purchase";
  52. case 3 :return "Platform Authorization";
  53. }
  54. return giveTypeStr;
  55. }
  56. public String getTotalTimeStr() {
  57. if(type == 2){
  58. return "-";
  59. }
  60. return totalTime.toString();
  61. }
  62. }