123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- package com.fdkankan.agent.response;
- import com.alibaba.excel.annotation.ExcelIgnore;
- import com.alibaba.excel.annotation.ExcelProperty;
- import lombok.Data;
- @Data
- public class LogListVoEn {
- @ExcelIgnore
- private Integer type; //权益类型
- @ExcelIgnore
- private Integer giveType; //授权方式
- @ExcelIgnore
- private Long userId; //用户id
- @ExcelProperty("Authorization Time")
- private String createTime;
- @ExcelProperty("Type")
- private String typeStr;
- @ExcelProperty("Nickname")
- private String nickName;
- @ExcelProperty("Account")
- private String userName;
- @ExcelProperty("Email")
- private String email;
- @ExcelProperty("Registration time")
- private String userCreateTime;
- @ExcelProperty("Authorizer")
- private String agentName;
- @ExcelProperty("Authorized Quantity")
- private Integer count;
- @ExcelIgnore
- private Integer totalTime;
- @ExcelProperty("Total duration of the authorization (year/month)")
- private String totalTimeStr;
- @ExcelProperty("Methods")
- private String giveTypeStr;
- public String getTypeStr() {
- if(type == null){
- return null;
- }
- switch (type){
- case 0 :return "Premium (Yearly)";
- case 1 :return "Senior (Monthly)";
- case 2 :return "Scene Download";
- }
- return typeStr;
- }
- public String getGiveTypeStr() {
- if(giveType == null){
- return null;
- }
- switch (giveType){
- case 0 :return "Dealer Authorization";
- case 1 :return "Dealer Renewals";
- case 2 :return "Official Website Purchase";
- case 3 :return "Platform Authorization";
- }
- return giveTypeStr;
- }
- public String getTotalTimeStr() {
- if(type == 2){
- return "-";
- }
- return totalTime.toString();
- }
- }
|