yujian
2020-05-23 28cf328a098334b51a3e9d2d56f983fb8c862211
fanli/src/main/java/com/yeshi/fanli/entity/order/OrderMoneyDailyCount.java
@@ -1,32 +1,35 @@
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.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_tb.png"),
      juHuaSuan("聚划算", "http://img.flqapp.com/resource/icon/source_type_tb.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;
@@ -41,40 +44,79 @@
      }
   }
   @Id
   @Field("id")
   @Field
   private String id;
   @Field("uid")
   @Indexed
   @Field
   private Long uid; // 上级id
   @Field("sourceType")
   @Field
   private SourceTypeEnum sourceType; // 来源类型
   @Field("yearMonth")
   @Indexed
   @Field
   private String yearMonth; // 统计日期-字符串
   @Field("countDay")
   @Indexed
   @Field
   private Date countDay; // 统计日期
   @Field("income")
   private BigDecimal income; // 收入-我的
   @Field("incomeTeam")
   private BigDecimal incomeTeam; // 收入-团队-
   @Field("orderNum")
   @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 OrderMoneyDailyCount() {}
   public OrderMoneyDailyCount(Integer directOrderNum, Integer inDirectOrderNum, Integer beyondOrderNum) {
      this.directOrderNum = directOrderNum;
      this.inDirectOrderNum = inDirectOrderNum;
      this.beyondOrderNum = beyondOrderNum;
   }
   @Field("orderNumTeam")
   private Integer orderNumTeam; // 订单数量-团队
   public Integer getDirectOrderNum() {
      return directOrderNum;
   }
   @Field("updateTime")
   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;
@@ -92,19 +134,43 @@
      this.uid = uid;
   }
   public BigDecimal getIncome() {
   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(BigDecimal income) {
   public void setIncome(Integer income) {
      this.income = income;
   }
   public BigDecimal getIncomeTeam() {
   public Integer getIncomeTeam() {
      return incomeTeam;
   }
   public void setIncomeTeam(BigDecimal incomeTeam) {
   public void setIncomeTeam(Integer incomeTeam) {
      this.incomeTeam = incomeTeam;
   }
@@ -124,12 +190,36 @@
      this.orderNumTeam = orderNumTeam;
   }
   public Date getCountDay() {
      return countDay;
   public Integer getTeamReward() {
      return teamReward;
   }
   public void setCountDay(Date countDay) {
      this.countDay = countDay;
   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() {
@@ -140,19 +230,4 @@
      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;
   }
}