package com.yeshi.fanli.entity.order;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
import org.springframework.data.annotation.Id;
|
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_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;
|
|
@Field("uid")
|
private Long uid; // 上级id
|
|
@Field("sourceType")
|
private SourceTypeEnum sourceType; // 来源类型
|
|
@Field("yearMonth")
|
private String yearMonth; // 统计日期-字符串
|
|
@Field("countDay")
|
private Date countDay; // 统计日期
|
|
@Field("income")
|
private BigDecimal income; // 收入-我的
|
|
@Field("incomeTeam")
|
private BigDecimal incomeTeam; // 收入-团队-
|
|
@Field("orderNum")
|
private Integer orderNum; // 订单数量-我的
|
|
@Field("orderNumTeam")
|
private Integer orderNumTeam; // 订单数量-团队
|
|
@Field("updateTime")
|
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 BigDecimal getIncome() {
|
return income;
|
}
|
|
public void setIncome(BigDecimal income) {
|
this.income = income;
|
}
|
|
public BigDecimal getIncomeTeam() {
|
return incomeTeam;
|
}
|
|
public void setIncomeTeam(BigDecimal 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 Date getCountDay() {
|
return countDay;
|
}
|
|
public void setCountDay(Date countDay) {
|
this.countDay = countDay;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
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;
|
}
|
}
|