package com.starry.admin.modules.statistics.module.vo;

import com.starry.admin.modules.statistics.module.enums.ClerkPerformanceSortField;
import com.starry.admin.modules.statistics.module.enums.SortDirection;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 店员业绩概览查询参数。
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("店员业绩概览查询参数")
public class ClerkPerformanceOverviewQueryVo extends PlayClerkPerformanceInfoQueryVo {

    @ApiModelProperty(value = "排序字段", allowableValues = "GMV,ORDER_COUNT,CONTINUE_RATE,ESTIMATED_REVENUE")
    private ClerkPerformanceSortField sortField = ClerkPerformanceSortField.GMV;

    @ApiModelProperty(value = "排序方向", allowableValues = "ASC,DESC")
    private SortDirection sortDirection = SortDirection.DEFAULT;

    @ApiModelProperty(value = "返回前N名数据，未设置则返回分页数据")
    private Integer limit;

    @ApiModelProperty(value = "是否包含汇总数据")
    private Boolean includeSummary = Boolean.TRUE;

    @ApiModelProperty(value = "是否包含排行列表数据")
    private Boolean includeRankings = Boolean.TRUE;

    @Override
    public void setEndOrderTime(List<String> endOrderTime) {
        super.setEndOrderTime(endOrderTime);
    }
}
