package com.doumee.dao.web.dto; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.doumee.core.annotation.excel.ExcelColumn; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.math.BigDecimal; import java.util.Date; /** * @author T14 */ @Data public class CardDTO { @ApiModelProperty(value = "主键") private Integer id; @ApiModelProperty(value = "卡号") @ExcelColumn(name="卡号",width = 18) private String code; @ApiModelProperty(value = "卡密") @ExcelColumn(name="卡密",width = 18) private String password; @ApiModelProperty(value = "金额") @ExcelColumn(name="金额",width = 18) private BigDecimal money; @ApiModelProperty(value = "有效期") @ExcelColumn(name="有效期",width = 18,dateFormat = "yyyy-MM-dd HH:mm:ss") private Date validDate; @ApiModelProperty(value = "类型编码(关联card_param表)") private Integer paramId; @ApiModelProperty(value = "类型编码名称") @ExcelColumn(name="类型编码名称") private String paramName; @ApiModelProperty(value = "使用情况 0未使用 1已使用") @ExcelColumn(name="使用情况",valueMapping = "0=未使用;1=已使用") private Integer isUsed; @ApiModelProperty(value = "创建时间") @ExcelColumn(name="创建时间",width = 18,dateFormat = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createDate; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "状态 0正常 1异常") @ExcelColumn(name="状态",width = 18 ,valueMapping = "0=正常;1=异常") private Integer status; @ApiModelProperty(value = "排序码") private Integer sortnum; @ApiModelProperty(value = "使用用户编码(关联member表)",hidden = true) private Integer memberId; @ApiModelProperty(value = "使用时间",hidden = true) private Date useDate; @ApiModelProperty(value = "使用备注",hidden = true) private String useInfo; }