package com.yonge.cooleshow.biz.dal.wrapper;

import com.yonge.cooleshow.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 机构人员信息统计
 * 2023-07-25 10:43:00
 */
@ApiModel(value = "TenantPersonStatWrapper对象", description = "机构人员信息统计查询对象")
public class TenantPersonStatWrapper {

    @Data
    public static class TenantPersonStatQuery{

        @ApiModelProperty("开始时间（年月日）")
        private String startTime;

        @ApiModelProperty("截止时间（年月日）")
        private String endTime;

        private String groupBy;

        private String format;

        private Long tenantId = -1l;
    }  

	@Data
    public static class TenantPersonStatDto {

        @ApiModelProperty("学员人数")
        private Integer studentNum = 0;

        @ApiModelProperty("老师人数")
        private Integer teacherNum = 0;

        @ApiModelProperty("时间节点")
        private String date;
    }

	@Data
    public static class TenantPersonStat {

        @ApiModelProperty("学员总人数")
        private Integer studentNum = 0;

        @ApiModelProperty("老师总人数")
        private Integer teacherNum = 0;
	}

	@Data
    public static class TenantPersonStatSum {

        @ApiModelProperty("总人数统计")
        private TenantPersonStat tenantPersonStat;

        @ApiModelProperty("列表数据")
        private List<TenantPersonStatDto> statDtos;

        public TenantPersonStatSum(TenantPersonStat tenantPersonStat, List<TenantPersonStatDto> statDtos) {
            this.tenantPersonStat = tenantPersonStat;
            this.statDtos = statDtos;
        }
    }

}