package com.fs.course.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fs.common.annotation.Excel;
import com.fs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员看课统计-按营期统计对象 fs_user_watch_statistics
 *
 * @author fs
 * @date 2025-06-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FsUserWatchStatistics extends BaseEntity{

    /** 主键id */
    private Long id;

    /** 营期id */
//    @Excel(name = "营期id")
    private Long periodId;

    /** 营期名称 */
    @Excel(name = "营期名称")
    private String periodName;

    /** 营期开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "营期线", width = 30, dateFormat = "yyyy-MM-dd")
    private Date periodStartingTime;

    /** 销售公司id */
//    @Excel(name = "销售公司id")
    private String companyId;

    /** 销售公司名称 */
    @Excel(name = "销售公司")
    private String companyName;

    /** 新增会员数量 */
    @Excel(name = "新增会员数量")
    private Integer newUserNum;

    /** 会员数量 */
    @Excel(name = "会员数量")
    private Integer userNum;

    /** 观看人数 */
    @Excel(name = "观看人数")
    private Integer watchNum;

    /** 上线率+% */
    @Excel(name = "上线率")
    private String onlineRatePercent;

    /** 完播人数 */
    @Excel(name = "完播人数")
    private Integer completeWatchNum;

    /** 上线率 */
    private BigDecimal onlineRate;

    /** 完播率 */
//    @Excel(name = "完播率")
    private BigDecimal completeWatchRate;

    /** 完播率+% */
    @Excel(name = "完播率")
    private String completeWatchRatePercent;

}
