admin
2020-05-12 2ec42a5aacea35d2918f0e17f07685cf5b4d25c8
fanli/src/main/java/com/yeshi/fanli/entity/order/OrderMoneyDailyCount.java
@@ -14,7 +14,35 @@
 */
@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;
@@ -23,7 +51,10 @@
   private Long uid; // 上级id
   
   @Field("sourceType")
   private String sourceType; // 来源类型
   private SourceTypeEnum sourceType; // 来源类型
   @Field("yearMonth")
   private String yearMonth; // 统计日期-字符串
   
   @Field("countDay")
   private Date countDay; // 统计日期
@@ -42,6 +73,8 @@
   @Field("updateTime")
   private Date updateTime; // 更新时间
   public String getId() {
      return id;
@@ -107,12 +140,19 @@
      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;
   }
}