huliguo
2025-04-23 f2070facdb5715e7349df69cfe257289c680d292
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
package com.ruoyi.account.api.model;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;
 
/**
 * <p>
 * 
 * </p>
 *
 * @author luodangjia
 * @since 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_app_user")
@ApiModel(value="AppUser对象", description="")
public class AppUser implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "主键")
    @TableId("id")
    private Long id;
 
    @ApiModelProperty(value = "用户类型(1-普通用户,2-门店员工)")
    private Integer userType;
 
    @ApiModelProperty(value = "用户")
    @TableField("name")
    private String name;
 
 
    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;
 
    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;
 
    @ApiModelProperty(value = "会员id")
    @TableField("vip_id")
    private Integer vipId;
 
    @ApiModelProperty(value = "微信openid")
    @TableField("wx_openid")
    private String wxOpenid;
 
    @ApiModelProperty(value = "支付宝openid")
    @TableField("ali_openid")
    private String aliOpenid;
 
    @ApiModelProperty(value = "状态(1=正常,2=冻结,3=注销)")
    @TableField("status")
    private Integer status;
 
    @ApiModelProperty(value = "添加时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
 
    @ApiModelProperty(value = "删除(0=否,1=是)")
    @TableField("del_flag")
    private Boolean delFlag;
 
    @ApiModelProperty(value = "0否1是第一次添加")
    @TableField("first_add")
    private Integer firstAdd;
 
    @ApiModelProperty(value = "最后一次登录时间")
    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;
 
 
    @ApiModelProperty(value = "门店id")
    @TableField("shop_id")
    private Integer shopId;
    @ApiModelProperty(value = "门店名称")
    @TableField(exist = false)
    private String shopName;
    @ApiModelProperty(value = "门店列表")
    @TableField(exist = false)
    private List<String> shopNames;
    @ApiModelProperty(value = "门店封面")
    @TableField(exist = false)
    private String shopCover;
    @ApiModelProperty(value = "门店地址")
    @TableField(exist = false)
    private String shopAddress;
 
    @ApiModelProperty(value = "门店状态(0-未拥有门店,1-正常,2-冻结)")
    @TableField(exist = false)
    private Integer shopStatus;
 
    @ApiModelProperty(value = "消费总金额(微信支付总金额)")
    @TableField("shop_amount")
    private BigDecimal shopAmount;
 
    @ApiModelProperty(value = "最后消费时间")
    @TableField("last_shop_time")
    private LocalDateTime lastShopTime;
 
    @ApiModelProperty(value = "总积分")
    @TableField("total_point")
    private Integer totalPoint;
 
    @ApiModelProperty(value = "可用积分")
    @TableField("available_point")
    private Integer availablePoint;
 
    @ApiModelProperty(value = "充值积分")
    @TableField("recharge_point")
    private Integer rechargePoint;
 
 
    @ApiModelProperty(value = "取消订单积分")
    @TableField("cancel_point")
    private Integer cancelPoint;
 
    @ApiModelProperty(value = "兑换商品消费积分")
    @TableField("exchange_point")
    private Integer exchangePoint;
 
    @ApiModelProperty(value = "转赠(转入)积分")
    @TableField("transferable_in_point")
    private Integer transferableInPoint;
 
    @ApiModelProperty(value = "转赠(转出)积分")
    @TableField("transferable_out_point")
    private Integer transferableOutPoint;
 
    
    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private String longitude;
    
    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private String latitude;
    
    @ApiModelProperty(value = "省")
    @TableField("province")
    private String province;
    
    @ApiModelProperty(value = "省编号")
    @TableField("province_code")
    private String provinceCode;
    
    @ApiModelProperty(value = "市")
    @TableField("city")
    private String city;
    
    @ApiModelProperty(value = "市编号")
    @TableField("city_code")
    private String cityCode;
    
    @ApiModelProperty(value = "区")
    @TableField("district")
    private String district;
    
    @ApiModelProperty(value = "区编号")
    @TableField("district_code")
    private String districtCode;
    @ApiModelProperty(value = "区编号")
    @TableField("qr_code")
    private String qrCode;
 
 
    @ApiModelProperty("消费绿电分数")
    @TableField(exist = false)
    private Integer customPoint;
 
    @ApiModelProperty("绑定门店id列表")
    @TableField(exist = false)
    private Set<Integer> shopIds;
 
 
 
    @ApiModelProperty(value = "最后下单时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastOrderTime;
 
    @TableField(exist = false)
    private Set<Long> userIds;
 
 
 
    public String getIdStr(){
        return String.valueOf(id);
    }
 
 
 
 
 
 
}