jiangping
2025-02-19 b7d7bb82334af8574ad2510b9fa2220581e3f9f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
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 List<DiscountLog> discountLogList;
 
 
    @ApiModelProperty(value = "操作记录")
    @TableField(exist = false)
    private List<DiscountLog> optLogList;
}