admin
2020-05-14 dda8f9a2347be94b8d8df1417a8feb96fc30ae54
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
217
218
219
220
221
222
223
package com.yeshi.fanli.entity.order;
 
import java.util.Date;
 
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
 
/**
 * 订单相关资金统计
 * 
 * @author Administrator
 *
 */
@Document(collection = "order_money_daily_count")
public class OrderMoneyDailyCount {
 
    public enum SourceTypeEnum {
        taobao("淘宝", "http://img.flqapp.com/resource/icon/source_type_tb.png"),
        tmall("天猫", "http://img.flqapp.com/resource/icon/source_type_tm.png"),
        tmallGlobal("天猫国际", "http://img.flqapp.com/resource/icon/source_type_tm_inter.png"),
        juHuaSuan("聚划算", "http://img.flqapp.com/resource/icon/source_type_juhuasuan.png"),
        huangLv("航旅", "http://img.flqapp.com/resource/icon/source_type_hanglv.png"),
        kouBei("口碑", "http://img.flqapp.com/resource/icon/source_type_koubei.png"),
        elme("饿了么", "http://img.flqapp.com/resource/icon/source_type_elme.png"),
        jingDong("京东", "http://img.flqapp.com/resource/icon/source_type_jd.png"),
        pinDuoDuo("拼多多", "http://img.flqapp.com/resource/icon/source_type_pdd.png");
 
        private final String desc;
        private final String icon;
 
        private SourceTypeEnum(String desc, String icon) {
            this.desc = desc;
            this.icon = icon;
        }
 
        public String getDesc() {
            return desc;
        }
 
        public String getIcon() {
            return icon;
        }
    }
 
    @Id
    @Field
    private String id;
    @Indexed
    @Field
    private Long uid; // 上级id
    @Field
    private SourceTypeEnum sourceType; // 来源类型
    @Indexed
    @Field
    private String yearMonth; // 统计日期-字符串
    @Indexed
    @Field
    private Date countDay; // 统计日期
    @Field
    private Integer income; // 收入-我的收益 X 100
    @Field
    private Integer incomeTeam; // 收入-团队收益 X 100(二级内)
    @Field
    private Integer orderNum; // 订单数量-我的
    @Field
    private Integer orderNumTeam; // 订单数量-团队(二级内)
    @Field
    private Integer teamReward; // 团队奖励 X 100 
    @Field
    private Integer teamRewardNum; // 团队奖励订单数量
    @Field
    private Integer teamSubsidy; // 团队补贴 X 100
    @Field
    private Integer teamSubsidyNum; // 团队补贴订单数量
    @Field
    private Integer directOrderNum;// 直接订单数量
    @Field
    private Integer inDirectOrderNum;// 间接订单数量
    @Field
    private Integer beyondOrderNum;// 二级外订单数量
 
    public Integer getDirectOrderNum() {
        return directOrderNum;
    }
 
    public void setDirectOrderNum(Integer directOrderNum) {
        this.directOrderNum = directOrderNum;
    }
 
    public Integer getInDirectOrderNum() {
        return inDirectOrderNum;
    }
 
    public void setInDirectOrderNum(Integer inDirectOrderNum) {
        this.inDirectOrderNum = inDirectOrderNum;
    }
 
    public Integer getBeyondOrderNum() {
        return beyondOrderNum;
    }
 
    public void setBeyondOrderNum(Integer beyondOrderNum) {
        this.beyondOrderNum = beyondOrderNum;
    }
 
    @Field
    private Date updateTime; // 更新时间
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public Long getUid() {
        return uid;
    }
 
    public void setUid(Long uid) {
        this.uid = uid;
    }
 
    public SourceTypeEnum getSourceType() {
        return sourceType;
    }
 
    public void setSourceType(SourceTypeEnum sourceType) {
        this.sourceType = sourceType;
    }
 
    public String getYearMonth() {
        return yearMonth;
    }
 
    public void setYearMonth(String yearMonth) {
        this.yearMonth = yearMonth;
    }
 
    public Date getCountDay() {
        return countDay;
    }
 
    public void setCountDay(Date countDay) {
        this.countDay = countDay;
    }
 
    public Integer getIncome() {
        return income;
    }
 
    public void setIncome(Integer income) {
        this.income = income;
    }
 
    public Integer getIncomeTeam() {
        return incomeTeam;
    }
 
    public void setIncomeTeam(Integer incomeTeam) {
        this.incomeTeam = incomeTeam;
    }
 
    public Integer getOrderNum() {
        return orderNum;
    }
 
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }
 
    public Integer getOrderNumTeam() {
        return orderNumTeam;
    }
 
    public void setOrderNumTeam(Integer orderNumTeam) {
        this.orderNumTeam = orderNumTeam;
    }
 
    public Integer getTeamReward() {
        return teamReward;
    }
 
    public void setTeamReward(Integer teamReward) {
        this.teamReward = teamReward;
    }
 
    public Integer getTeamRewardNum() {
        return teamRewardNum;
    }
 
    public void setTeamRewardNum(Integer teamRewardNum) {
        this.teamRewardNum = teamRewardNum;
    }
 
    public Integer getTeamSubsidy() {
        return teamSubsidy;
    }
 
    public void setTeamSubsidy(Integer teamSubsidy) {
        this.teamSubsidy = teamSubsidy;
    }
 
    public Integer getTeamSubsidyNum() {
        return teamSubsidyNum;
    }
 
    public void setTeamSubsidyNum(Integer teamSubsidyNum) {
        this.teamSubsidyNum = teamSubsidyNum;
    }
 
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
}