# HotelKpiMetricsConfig.java

    package cloud.wconnect.workperformance.entity.hotelkpi.old;

    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")
    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;

        /**
         * 计算因子配置 {"actual": {"calculationFactor": [{"index": 1,"title": "xxx","formula": "公式"},{"index": 2,"title": "yyy","formula": "公式"}],"valueContent": "PASS"},"target": {"calculationFactor": [{"index": 1,"title": null,"formula": "公式"}],"valueContent": null}}
         */
        private String calculationFactorConfig;

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

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