package org.dromara.elevator.domain.vo;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 维保统计
 *
 * @author ym
 * @version 1.0.0
 * @date 2024-09-12 10:44
 */
@Data
public class EMaintenanceStatisticsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 维保单位id
     */
    private Long maintenanceId;
    /**
     * 维保单位名称
     */
    private String maintenanceName;
    /**
     * 维保次数
     */
    private Integer maintenanceTotal;
    /**
     * 救援次数
     */
    private Integer rescueTotal;
    /**
     * 维修次数
     */
    private Integer repairTotal;
    /**
     * 行为次数(异常故障)
     */
    private Integer exceptionFaultTotal;
    /**
     * 故障次数
     */
    private Integer faultTotal;
    /**
     * 故障率
     */
    private BigDecimal faultRatio;
    /**
     * 救援率
     */
    private BigDecimal rescueRatio;
    /**
     * 行为次数
     */
    private Integer behaviorTotal;

    public EMaintenanceStatisticsVo() {
        this.behaviorTotal = 0;
        this.rescueRatio = BigDecimal.ZERO;
        this.faultRatio = BigDecimal.ZERO;
        this.faultTotal = 0;
        this.exceptionFaultTotal = 0;
        this.repairTotal = 0;
        this.rescueTotal = 0;
        this.maintenanceTotal = 0;
    }
}
