1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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("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();
- }
- }
|