# HotelKpiMetricsSaveValueDTO.java

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

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import jakarta.validation.constraints.NotNull;
    import lombok.Data;

    import java.math.BigDecimal;

    /**
     * DTO: Hotel KPI Metrics Save Value
     *
     * @author zc
     * @date 2024/08/14
     */
    @Data
    public class HotelKpiMetricsSaveValueDTO {

        /**
         * 索引
         */
        @NotNull(message = "The index cannot be null")
        private Integer index;

        /**
         * 数值
         */
        @DigitsCustom(integer = 10, message = "The value is wrong format")
        private BigDecimal value;

        /**
         * 是否使用系统数值 true:是;false:否
         */
        @NotNull(message = "The useSystem cannot be null")
        private Boolean useSystem;
    }