package com.sundot.airport.personnel.dto;

import java.util.List;

/**
 * 分值区间分布DTO - 按分数段组织数据
 *
 * @author wangxx
 * @date 2026-05-09
 */
public class ScoreRangeDistributionDto {
    /**
     * 分数段标识
     */
    private String rangeKey;

    /**
     * 分数段显示名称
     */
    private String rangeLabel;

    /**
     * 该分数段总人数汇总
     */
    private Integer totalCount;

    /**
     * 各部门人数列表
     */
    private List<DeptCountItemDto> deptCounts;

    public String getRangeKey() {
        return rangeKey;
    }

    public void setRangeKey(String rangeKey) {
        this.rangeKey = rangeKey;
    }

    public String getRangeLabel() {
        return rangeLabel;
    }

    public void setRangeLabel(String rangeLabel) {
        this.rangeLabel = rangeLabel;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public List<DeptCountItemDto> getDeptCounts() {
        return deptCounts;
    }

    public void setDeptCounts(List<DeptCountItemDto> deptCounts) {
        this.deptCounts = deptCounts;
    }

    /**
     * 部门人数明细DTO
     */
    public static class DeptCountItemDto {
        /**
         * 部门ID
         */
        private Long deptId;

        /**
         * 部门名称
         */
        private String deptName;

        /**
         * 该分数段人数
         */
        private Integer count;

        public Long getDeptId() {
            return deptId;
        }

        public void setDeptId(Long deptId) {
            this.deptId = deptId;
        }

        public String getDeptName() {
            return deptName;
        }

        public void setDeptName(String deptName) {
            this.deptName = deptName;
        }

        public Integer getCount() {
            return count;
        }

        public void setCount(Integer count) {
            this.count = count;
        }
    }
}
