package com.doumee.dao.business.model; import com.baomidou.mybatisplus.annotation.TableField; import com.doumee.core.annotation.excel.ExcelColumn; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import com.fasterxml.jackson.annotation.JsonFormat; import java.util.Date; import java.math.BigDecimal; import java.util.List; /** * 用户骑行套餐卡关联表 * @author 江蹄蹄 * @date 2025/02/17 09:43 */ @Data @ApiModel("用户骑行套餐卡关联表") @TableName("\"discount_member\"") public class DiscountMember { @ApiModelProperty(value = "编码") private String id; @ApiModelProperty(value = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd") private Date createDate; @ApiModelProperty(value = "创建人") private String creator; @ApiModelProperty(value = "编辑时间") @JsonFormat(pattern = "yyyy-MM-dd") private Date editDate; @ApiModelProperty(value = "编辑人") private String editor; @ApiModelProperty(value = "是否已删除 0未删除 1已删除", example = "1") private Integer isdeleted; @ApiModelProperty(value = "备注") private String info; @ApiModelProperty(value = "票号") @ExcelColumn(name="套餐票号",index = 0,width = 16) private String code; @ApiModelProperty(value = "名称") @ExcelColumn(name="套餐名称",index = 2,width = 10) private String name; @ApiModelProperty(value = "类型 0期限卡 1次卡", example = "1") @ExcelColumn(name="套餐类型",index = 1,valueMapping = "0=期限卡;1=次卡;",width = 10) private Integer type; @ApiModelProperty(value = "每日骑行限制类型 0不限制 1限制", example = "1") private Integer limitType; @ApiModelProperty(value = "每日骑行限制时间(分钟)", example = "1") private Integer limitTime; @ApiModelProperty(value = "销售价(元)", example = "1") private BigDecimal price; @ApiModelProperty(value = "划线价(元)", example = "1") private BigDecimal linePrice; @ApiModelProperty(value = "销售渠道 0小程序", example = "1") private Integer channel; @ApiModelProperty(value = "套餐图片") private String imgurl; @ApiModelProperty(value = "简介") private String descs; @ApiModelProperty(value = "描述") private String content; @ApiModelProperty(value = "销售开始日期") @JsonFormat(pattern = "yyyy-MM-dd") private Date startDate; @ApiModelProperty(value = "销售结束日期") @JsonFormat(pattern = "yyyy-MM-dd") private Date endDate; @ApiModelProperty(value = "使用时间类型 0固定时间段 1购买后生效 2指定日期生效", example = "1") private Integer useType; @ApiModelProperty(value = "使用开始日期") @ExcelColumn(name="有效期开始",index = 5,width = 16,dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") private Date useStartDate; @ApiModelProperty(value = "使用结束日期") @ExcelColumn(name="有效期结束",index = 6,width = 16,dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") private Date useEndDate; @ApiModelProperty(value = "使用有效天数", example = "1") private Integer useDays; @ApiModelProperty(value = "节假日是否可以 0否 1是", example = "1") private Integer useHoliday; @ApiModelProperty(value = "工作日是否可以 0否 1是", example = "1") private Integer useWorkday; @ApiModelProperty(value = "销量总限额", example = "1") private Integer saleLimit; @ApiModelProperty(value = "销量每天限额", example = "1") private Integer saleDayLimit; @ApiModelProperty(value = "状态 0正常 1作废 2待支付", example = "1") @ExcelColumn(name="套餐状态",index = 7,width = 10,valueMapping = "0=正常;1=作废;2=待支付") private Integer status; @ApiModelProperty(value = "用户编码(关联member)") private String memberId; @ApiModelProperty(value = "关联订单编码(关联goodsorder)") private String goodsorderId; @ApiModelProperty(value = "是否支持自行车订单 0不支持 1支持", example = "1") private Integer isbike; @ApiModelProperty(value = "是否支持电动车 0不支持 1支持", example = "1") private Integer iselecbike; @ApiModelProperty(value = "用户opneid") @ExcelColumn(name="用户信息",index = 3,width = 20) @TableField(exist = false) private String openid; @ApiModelProperty(value = "使用次数") @ExcelColumn(name="使用次数",index = 4,width = 20) @TableField(exist = false) private Integer useTimes; @ApiModelProperty(value = "使用时长") @TableField(exist = false) private Integer useTime; @ApiModelProperty(value = "剩余时长",hidden = true) @TableField(exist = false) private Integer surplusTime; @ApiModelProperty(value = "骑行记录") @TableField(exist = false) private List discountLogList; @ApiModelProperty(value = "操作记录") @TableField(exist = false) private List optLogList; }