LogListVo.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 LogListVo {
  7. @ExcelIgnore
  8. private Integer type; //权益类型
  9. @ExcelIgnore
  10. private Integer giveType; //授权方式
  11. @ExcelIgnore
  12. private Long userId; //用户id
  13. @ExcelProperty("授权时间")
  14. private String createTime;
  15. @ExcelProperty("权益类型")
  16. private String typeStr;
  17. @ExcelProperty("授权方式")
  18. private String giveTypeStr;
  19. @ExcelProperty("账号")
  20. private String userName;
  21. @ExcelProperty("昵称")
  22. private String nickName;
  23. @ExcelProperty("邮箱")
  24. private String email;
  25. @ExcelProperty("授权数量")
  26. private Integer count;
  27. @ExcelIgnore
  28. private Integer totalTime;
  29. @ExcelProperty("授权总期限(年/月)")
  30. private String totalTimeStr;
  31. public String getTypeStr() {
  32. if(type == null){
  33. return null;
  34. }
  35. switch (type){
  36. case 0 :return "专业会员(年)";
  37. case 1 :return "高级会员(月)";
  38. case 2 :return "场景下载";
  39. }
  40. return typeStr;
  41. }
  42. public String getGiveTypeStr() {
  43. if(giveType == null){
  44. return null;
  45. }
  46. switch (giveType){
  47. case 0 :return "经销商授权";
  48. case 1 :return "经销商续费";
  49. case 2 :return "官网自购";
  50. case 3 :return "平台授权";
  51. }
  52. return giveTypeStr;
  53. }
  54. public String getTotalTimeStr() {
  55. if(type == 2){
  56. return "-";
  57. }
  58. return totalTime.toString();
  59. }
  60. }