package com.bonus.material.push.domain;

import lombok.Data;
import java.math.BigDecimal;

@Data
public class TotalNumsBean {
    /**
     * 分类类型: 0-总计, 1-牵张设备, 2-抱杆, 3-动力设备,
     * 4-变电专业设备, 5-安全工器具, 6-自主创新设备, 7-其他
     */
    private Integer isStatics;

    private BigDecimal inventoryNum;
    private BigDecimal useNum;
    private BigDecimal repairNum;
    private BigDecimal num;
    private BigDecimal ApproachingNum;
    private BigDecimal TimeoutNum;

    // 可以根据需要添加分类名称getter方法
    public String getCategoryName() {
        if (isStatics == null) return "未知";

        switch (isStatics) {
            case 0: return "总计";
            case 1: return "牵张设备";
            case 2: return "抱杆";
            case 3: return "动力设备";
            case 4: return "变电专业设备";
            case 5: return "安全工器具";
            case 6: return "自主创新设备";
            case 7: return "其他";
            default: return "未知分类";
        }
    }
}