package com.panzhihua.common.model.vos.community; import com.alibaba.excel.annotation.ExcelIgnore; import com.alibaba.excel.annotation.ExcelProperty; import io.swagger.annotations.ApiModel; import lombok.Data; import java.util.Date; /** * title: ComActActSignExcelVO 社区活动报名名单 * projectName 成都呐喊信息技术有限公司-智慧社区项目 * description: 记录和展示社区活动报名名单 * * @author txb * @date 2021/8/24 10:21 */ @Data @ApiModel("社区活动签到表") public class ComActActSignExcelVO { @ExcelProperty(value = "姓名", index = 1) private String name; @ExcelProperty(value = "身份", index = 2) private String identity; @ExcelProperty(value = "电话", index = 4) private String phone; @ExcelProperty(value = "报名时间", index = 0) private Date createAt; @ExcelProperty(value = "人员标签", index = 3) private String tags; @ExcelProperty(value = "报名状态",index = 5) private String status; @ExcelProperty(value = "取消原因", index = 6) private String reason; @ExcelProperty(value = "参与情况", index = 7) private String condition; @ExcelProperty(value = "获得奖励", index = 8) private String award; @ExcelIgnore private Integer times; @ExcelIgnore private Integer limit; public void generateCondition() { if(this.times!=null&&this.limit!=null){ this.condition = "("+times+"/"+ (limit.equals(-1) ? "无限" : limit) +")"; } } }