package com.fdkankan.agent.response; import com.alibaba.excel.annotation.ExcelIgnore; import com.alibaba.excel.annotation.ExcelProperty; import lombok.Data; @Data public class LogListVo { @ExcelIgnore private Integer type; //权益类型 @ExcelIgnore private Integer giveType; //授权方式 @ExcelIgnore private Long userId; //用户id @ExcelProperty("授权时间") private String createTime; @ExcelProperty("权益类型") private String typeStr; @ExcelProperty("授权方式") private String giveTypeStr; @ExcelProperty("账号") private String userName; @ExcelProperty("昵称") private String nickName; @ExcelProperty("邮箱") private String email; @ExcelProperty("授权数量") private Integer count; @ExcelIgnore private Integer totalTime; @ExcelProperty("授权总期限(年/月)") private String totalTimeStr; public String getTypeStr() { if(type == null){ return null; } switch (type){ case 0 :return "专业会员(年)"; case 1 :return "高级会员(月)"; case 2 :return "场景下载"; } return typeStr; } public String getGiveTypeStr() { if(giveType == null){ return null; } switch (giveType){ case 0 :return "经销商授权"; case 1 :return "经销商续费"; case 2 :return "官网自购"; case 3 :return "平台授权"; } return giveTypeStr; } public String getTotalTimeStr() { if(type == 2){ return "-"; } return totalTime.toString(); } }