package com.panzhihua.common.model.vos.community.raffle;
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.net.URL;
|
import java.util.Date;
|
|
/**
|
* @author zzj
|
*/
|
@Data
|
public class ComActRaffleRecordExcelVO {
|
@ApiModelProperty(value = "昵称")
|
@ExcelProperty(value = "昵称",index = 0)
|
private String nickName;
|
|
@ApiModelProperty(value = "姓名")
|
@ExcelProperty(value = "姓名",index = 1)
|
private String username;
|
|
@ApiModelProperty(value = "联系电话")
|
@ExcelProperty(value = "联系电话",index = 2)
|
private String phone;
|
/**
|
* 创建时间
|
*/
|
@ExcelProperty(value = "中奖时间",index = 3)
|
@ApiModelProperty(value = "创建时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date createTime;
|
|
@ApiModelProperty(value = "奖品名称")
|
@ExcelProperty(value = "奖品名称",index = 4)
|
private String prizeName;
|
|
@ApiModelProperty(value = "核销人名称")
|
@ExcelProperty(value = "核销人",index = 5)
|
private String staffName;
|
|
@ApiModelProperty(value = "核销时间")
|
@ExcelProperty(value = "核销时间",index = 6)
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date staffTime;
|
|
@ExcelProperty(value = "状态",index = 7)
|
private String status;
|
|
public String getStatus() {
|
if("1".equals(this.status)){
|
return "待兑奖";
|
}
|
if("2".equals(this.status)){
|
return "已兑奖";
|
}
|
if("3".equals(this.status)){
|
return "已失效";
|
}
|
return "";
|
}
|
}
|