From 554de444b87aab5f93cb1593a8095612cf9479a7 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期二, 09 六月 2020 17:34:30 +0800 Subject: [PATCH] 订单 --- fanli/src/main/java/com/yeshi/fanli/entity/order/OrderMoneyDailyCount.java | 160 ++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 128 insertions(+), 32 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/order/OrderMoneyDailyCount.java b/fanli/src/main/java/com/yeshi/fanli/entity/order/OrderMoneyDailyCount.java index a23817b..754db8f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/entity/order/OrderMoneyDailyCount.java +++ b/fanli/src/main/java/com/yeshi/fanli/entity/order/OrderMoneyDailyCount.java @@ -1,14 +1,15 @@ 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 * */ @@ -16,31 +17,78 @@ public class OrderMoneyDailyCount { @Id - @Field("id") + @Field private String id; - - @Field("uid") + @Indexed + @Field private Long uid; // 涓婄骇id - - @Field("sourceType") - private String sourceType; // 鏉ユ簮绫诲瀷 - - @Field("countDay") + @Field + private SourceTypeEnum sourceType; // 鏉ユ簮绫诲瀷 + @Indexed + @Field + private String yearMonth; // 缁熻鏃ユ湡-瀛楃涓� + @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 teamDividentsOrderNum;// 鍙備笌鍒嗙孩鐨勮鍗曟暟閲� + @Field + private Integer directOrderNum;// 鐩存帴璁㈠崟鏁伴噺 + @Field + private Integer inDirectOrderNum;// 闂存帴璁㈠崟鏁伴噺 + @Field + private Integer beyondOrderNum;// 浜岀骇澶栬鍗曟暟閲� - @Field("orderNumTeam") - private Integer orderNumTeam; // 璁㈠崟鏁伴噺-鍥㈤槦 + public OrderMoneyDailyCount() { + } - @Field("updateTime") + public OrderMoneyDailyCount(Integer directOrderNum, Integer inDirectOrderNum, Integer beyondOrderNum) { + this.directOrderNum = directOrderNum; + this.inDirectOrderNum = inDirectOrderNum; + this.beyondOrderNum = 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() { @@ -59,19 +107,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; } @@ -91,12 +163,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() { @@ -107,12 +203,12 @@ this.updateTime = updateTime; } - public String getSourceType() { - return sourceType; + public Integer getTeamDividentsOrderNum() { + return teamDividentsOrderNum; } - public void setSourceType(String sourceType) { - this.sourceType = sourceType; + public void setTeamDividentsOrderNum(Integer teamDividentsOrderNum) { + this.teamDividentsOrderNum = teamDividentsOrderNum; } } -- Gitblit v1.8.0