# HotelKpiMetricsConfig.java

    package cloud.wconnect.workperformance.entity.hotelkpi;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

    import java.io.Serializable;

    /**
     * <p>
     * Hotel KPI Metrics Config
     * </p>
     *
     * @author zc
     * @since 2024-06-24
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("hotel_kpi_metrics_config_v2")
    public class HotelKpiMetricsConfig implements Serializable {

        private static final long serialVersionUID = 1L;

        /**
         * 主键 id
         */
        @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

        /**
         * 资产 id
         */
        private Integer propertyId;

        /**
         * 父级 id
         */
        private Integer parentId;

        /**
         * 指标类型
         */
        private Integer metricsType;

        /**
         * 标题
         */
        private String title;

        /**
         * 描述
         */
        private String description;

        /**
         * 单位符号
         */
        private String unit;

        /**
         * 排序
         */
        private Integer sort;

        /**
         * 启用日期(yyyyMMdd)
         */
        private Long enabledDate;

        /**
         * 停用日期(yyyyMMdd)
         */
        private Long disabledDate;

        /**
         * 周、月、季、年时间维度显示配置：{"weekly": true,"monthly": true,"quarterly": true,"yearly": true}
         */
        private String showConfig;

        /**
         * 编辑配置
         */
        private String editConfig;

        /**
         * 计算因子配置
         */
        private String calculationFactorConfig;

        /**
         * 比较规则 {"on": true,"actualGreaterTarget": "good","actualGreaterLast": "good"}
         */
        private String comparisonRule;

        /**
         * 数据源配置
         */
        private String dataSource;

        /**
         * 版本
         */
        private Integer version;
    }