yujian
2020-04-29 c5d944e22a575eb5fe8cb4156771a15ee5c0037e
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
214
215
216
package com.yeshi.fanli.entity.bus.msg;
 
import java.math.BigDecimal;
import java.util.Date;
 
import org.yeshi.utils.mybatis.Column;
import org.yeshi.utils.mybatis.Table;
 
import com.yeshi.fanli.entity.bus.user.UserInfo;
 
/***
 * 订单类型的消息
 * 
 * @author Administrator
 *
 */
@Table("yeshi_ec_msg_order")
public class MsgOrderDetail {
    public final static int STATE_FK = 1;// 已付款
    public final static int STATE_JS = 2;// 已收货
    public final static int STATE_WQ = 3;// 已维权
    public final static int STATE_SX = 4;// 未付款/已退款
 
    public enum MsgTypeOrderTypeEnum {
        fanli("返利订单", "http://img.flqapp.com/resource/msg/icon_msg_order.png"),
        share("分享订单", "http://img.flqapp.com/resource/msg/icon_msg_order.png"), 
        invite("团队订单", "http://img.flqapp.com/resource/msg/icon_msg_order.png"), 
        found("订单找回", "http://img.flqapp.com/resource/msg/icon_msg_order.png"), // 老版
        foundSucceed("订单找回", "http://img.flqapp.com/resource/msg/icon_msg_order.png"), 
        foundFail("订单找回", "http://img.flqapp.com/resource/msg/icon_msg_order.png"),
        orderStatistics("订单统计", "http://img.flqapp.com/resource/msg/icon_msg_order.png"), 
        orderShare("订单统计", "http://img.flqapp.com/resource/msg/icon_msg_order.png"), 
        orderInvite("订单统计", "http://img.flqapp.com/resource/msg/icon_msg_order.png"), 
        businessRunning("订单失效", "http://img.flqapp.com/resource/msg/icon_msg_order.png"),
        elme("饿了么订单", "http://img.flqapp.com/resource/msg/icon_msg_order.png");
        
        private final String desc;
        private final String icon;
 
        private MsgTypeOrderTypeEnum(String desc, String icon) {
            this.desc = desc;
            this.icon = icon;
        }
 
        public String getDesc() {
            return desc;
        }
        
        public String getIcon() {
            return icon;
        }
    }
 
    @Column(name = "mo_id")
    private Long id;
    @Column(name = "mo_uid")
    private UserInfo user;
    @Column(name = "mo_type")
    private MsgTypeOrderTypeEnum type;// 消息类型
    @Column(name = "mo_order_id")
    private String orderId;// 订单号
    @Column(name = "mo_order_type")
    private Integer orderType;// 订单类型
    @Column(name = "mo_state")
    private Integer state;// 状态
    @Column(name = "mo_goods_count")
    private Integer goodsCount;// 商品数量
    @Column(name = "mo_pay_money")
    private BigDecimal payMoney;// 付款金额
    @Column(name = "mo_hongbao_money")
    private BigDecimal hongBaoMoney;// 佣金
    @Column(name = "mo_happen_date")
    private Date happendDate;// 发生时间
    @Column(name = "mo_beizhu")
    private String beiZhu;
    @Column(name = "mo_read")
    private Boolean read;// 是否已读
    @Column(name = "mo_create_time")
    private Date createTime;
    @Column(name = "mo_update_time")
    private Date updateTime;
    // 唯一索引
    @Column(name = "mo_unique_key")
    private String uniquekey;
    
    private String extraInfo;// 新版消息内容
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public UserInfo getUser() {
        return user;
    }
 
    public void setUser(UserInfo user) {
        this.user = user;
    }
 
    public MsgTypeOrderTypeEnum getType() {
        return type;
    }
 
    public void setType(MsgTypeOrderTypeEnum type) {
        this.type = type;
    }
 
    public String getOrderId() {
        return orderId;
    }
 
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
 
    public Integer getState() {
        return state;
    }
 
    public void setState(Integer state) {
        this.state = state;
    }
 
    public Integer getGoodsCount() {
        return goodsCount;
    }
 
    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }
 
    public BigDecimal getPayMoney() {
        return payMoney;
    }
 
    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }
 
    public BigDecimal getHongBaoMoney() {
        return hongBaoMoney;
    }
 
    public void setHongBaoMoney(BigDecimal hongBaoMoney) {
        this.hongBaoMoney = hongBaoMoney;
    }
 
    public String getBeiZhu() {
        return beiZhu;
    }
 
    public void setBeiZhu(String beiZhu) {
        this.beiZhu = beiZhu;
    }
 
    public Boolean getRead() {
        return read;
    }
 
    public void setRead(Boolean read) {
        this.read = read;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
    public Date getHappendDate() {
        return happendDate;
    }
 
    public void setHappendDate(Date happendDate) {
        this.happendDate = happendDate;
    }
 
    public Integer getOrderType() {
        return orderType;
    }
 
    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }
 
    public String getExtraInfo() {
        return extraInfo;
    }
 
    public void setExtraInfo(String extraInfo) {
        this.extraInfo = extraInfo;
    }
 
    public String getUniquekey() {
        return uniquekey;
    }
 
    public void setUniquekey(String uniquekey) {
        this.uniquekey = uniquekey;
    }
    
}