# HotelKpiCalculationFactorDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hotelkpi.kpi;

    import cloud.wconnect.workperformance.pojo.dto.hotelkpi.internal.crawl.value.v1.HotelKpiCrawlValueIndexDTO;
    import com.google.common.collect.Lists;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;

    import java.math.BigDecimal;
    import java.util.List;

    /**
     * DTO: Hotel KPI Calculation Factor
     *
     * @author zc
     * @date 2024/06/30
     */
    @Data
    @Builder
    @AllArgsConstructor
    public class HotelKpiCalculationFactorDTO {

        /**
         * 索引
         */
        private Integer index;

        /**
         * 采集数值结果
         */
        private BigDecimal crawl;

        /**
         * 采集原始数值
         */
        private List<HotelKpiCrawlValueIndexDTO> crawlOrigin;

        /**
         * 手动录入值
         */
        private BigDecimal manual;

        /**
         * 更新人 id
         */
        private Integer updatedBy;

        /**
         * 更新人名称
         */
        private String updatedName;

        /**
         * 更新时间戳
         */
        private Long updatedTime;

        /**
         * 设置分类：
         *  Actual - 1:恒定 2:累加 3:动态 4:独立 5:递减剩余
         *  Target, Cure - 1:恒定 2:累加 3:动态 4:独立
         */
        private Integer settingCategory;

        /**
         * 阶段值
         */
        private List<HotelKpiStageValueDTO> stageValue;

        /**
         * 阶段总值
         */
        private BigDecimal stageTotalValue;

        public HotelKpiCalculationFactorDTO() {
            this.crawlOrigin = Lists.newArrayList();
            this.stageValue = Lists.newArrayList();
            this.updatedBy = 0;
            this.updatedTime = 0L;
        }
    }