# ScoreCardGmConfig.java

    package cloud.wconnect.workperformance.entity.scorecardgm;

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

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

    /**
     * <p>
     *
     * </p>
     *
     * @author yyt
     * @since 2023-10-04
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class ScoreCardGmConfig implements Serializable {

        private static final long serialVersionUID = 1L;

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

        private Integer propertyId;

        /**
         * 0: 父级
         */
        private Integer parentId;

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

        /**
         * 指标显示顺序
         */
        private Integer sort;

        /**
         * 0: 未删除 1：已删除
         */
        private Boolean status;

        /**
         * 数值单位
         */
        private String unit;

        /**
         * weight
         */
        private BigDecimal weight;

        /**
         * 固定值
         */
        private BigDecimal fixedValue;

        /**
         * {"type": "类型【1：(Actual / Target)，2：-((Actual/Target)-1)，3：(Actual-Target)/自定义（见alculationFactor）】", "calculationFactor": "计算因子，如：_id_*30*413"}
         */
        private String scoreSetting;

        /**
         * {"type": "类型【1：Score*100，2：Score*100*3，3：(Score-1)*100，4：(Score-1)*3*100】", "calculationFactor": ""}
         */
        private String pointsSetting;

        /**
         * {"type": "类型【1：Points * 当前指标的 Weight】", "calculationFactor": ""}
         */
        private String weighedScoreSetting;

    }