package com.yeshi.fanli.entity.admin.count;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Field;
|
|
/**
|
* 每日用户统计
|
*
|
* @author Administrator
|
*
|
*/
|
@Document(collection = "daily_count_user")
|
public class DailyCountUser {
|
|
public enum DailyCountUserEnum {
|
newUserChannel("新增用户分渠道"),
|
newUserDownOrderDay("转化率-当日下单"),
|
newUserDownOrderWeek("转化率-当周下单"),
|
newUserDownOrderWeek3("转化率-当周下3单"),
|
activeAgain90("90天再次活跃"),
|
integralNum("用户金币数量"),
|
newUserTljNum("新人红包数量总计"),
|
newUserTljMoney("新人红包金额总计"),
|
redpackNum("奖励红包总计"),
|
redpackMoney("奖励红包总计"),
|
extractApplyNumber("提现申请次数"),
|
extractApplyMoney("提现申请金额"),
|
extractAuditPass("提现审核通过"),
|
extractAuditReject("提现审核驳回");
|
|
private final String desc;
|
|
private DailyCountUserEnum(String desc) {
|
this.desc = desc;
|
}
|
|
public String getDesc() {
|
return desc;
|
}
|
}
|
|
@Field("_id")
|
private String id;
|
// 日期:年月日
|
@Field("day")
|
private Date day;
|
// 总数 -每日结果数据
|
@Field("total")
|
private BigDecimal total;
|
// 类型
|
@Field("type")
|
private DailyCountUserEnum type;
|
// 渠道
|
@Field("channel")
|
private String channel;
|
// 更新日期
|
@Field("updateDate")
|
private Date updateDate;
|
|
// 计算比例
|
@Field("rate")
|
private boolean rate;
|
// 当日总数 -计算比例
|
@Field("totalDay")
|
private BigDecimal totalDay;
|
// 当日有效总数 -计算比例
|
@Field("totalValid")
|
private BigDecimal totalValid;
|
|
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public Date getDay() {
|
return day;
|
}
|
|
public void setDay(Date day) {
|
this.day = day;
|
}
|
|
public BigDecimal getTotal() {
|
return total;
|
}
|
|
public void setTotal(BigDecimal total) {
|
this.total = total;
|
}
|
|
public DailyCountUserEnum getType() {
|
return type;
|
}
|
|
public void setType(DailyCountUserEnum type) {
|
this.type = type;
|
}
|
|
public Date getUpdateDate() {
|
return updateDate;
|
}
|
|
public void setUpdateDate(Date updateDate) {
|
this.updateDate = updateDate;
|
}
|
|
public String getChannel() {
|
return channel;
|
}
|
|
public void setChannel(String channel) {
|
this.channel = channel;
|
}
|
|
public BigDecimal getTotalDay() {
|
return totalDay;
|
}
|
|
public void setTotalDay(BigDecimal totalDay) {
|
this.totalDay = totalDay;
|
}
|
|
public BigDecimal getTotalValid() {
|
return totalValid;
|
}
|
|
public void setTotalValid(BigDecimal totalValid) {
|
this.totalValid = totalValid;
|
}
|
|
public boolean isRate() {
|
return rate;
|
}
|
|
public void setRate(boolean rate) {
|
this.rate = rate;
|
}
|
}
|