| | |
| | | */
|
| | | @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_tb.png"),
|
| | | juHuaSuan("聚划算", "http://img.flqapp.com/resource/icon/source_type_tb.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("id")
|
| | | private String id;
|
| | |
| | | private Long uid; // 上级id
|
| | |
|
| | | @Field("sourceType")
|
| | | private String sourceType; // 来源类型
|
| | | private SourceTypeEnum sourceType; // 来源类型
|
| | | |
| | | @Field("yearMonth")
|
| | | private String yearMonth; // 统计日期-字符串
|
| | |
|
| | | @Field("countDay")
|
| | | private Date countDay; // 统计日期
|
| | |
| | |
|
| | | @Field("updateTime")
|
| | | private Date updateTime; // 更新时间
|
| | | |
| | | |
| | |
|
| | | public String getId() {
|
| | | return id;
|
| | |
| | | this.updateTime = updateTime;
|
| | | }
|
| | |
|
| | | public String getSourceType() {
|
| | | public SourceTypeEnum getSourceType() {
|
| | | return sourceType;
|
| | | }
|
| | |
|
| | | public void setSourceType(String sourceType) {
|
| | | public void setSourceType(SourceTypeEnum sourceType) {
|
| | | this.sourceType = sourceType;
|
| | | }
|
| | |
|
| | | public String getYearMonth() {
|
| | | return yearMonth;
|
| | | }
|
| | |
|
| | | public void setYearMonth(String yearMonth) {
|
| | | this.yearMonth = yearMonth;
|
| | | }
|
| | | }
|