# IwcWeightConfig.java

    package cloud.wconnect.rateshop.entity.rateshop;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    import lombok.Getter;
    import lombok.Setter;
    import lombok.ToString;
    import lombok.experimental.Accessors;

    import java.io.Serializable;

    /**
     * <p>
     * IWC的权重配置表
     * </p>
     *
     * @author lichen
     * @since 2025-04-02
     */
    @Getter
    @Setter
    @ToString
    @Accessors(chain = true)
    @TableName("iwc_weight_config")
    public class IwcWeightConfig implements Serializable {

        private static final long serialVersionUID = 1L;

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

        /**
         * 租户ID
         */
        private Integer tenantId;

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

        /**
         * 配置类型1:OTA权重 2:Sold Out权重 3:调涨权重
         */
        private Integer type;

        /**
         * OTA权重：[{"range":"0,50","value":90},{"range":"51,80","value":85},{"range":"81,100","value":88}]
         * Sold Out权重：[{"isSoldOut":1,"value":8},{"isSoldOut":0,"value":0}]
         * 调涨次数权重：[{"range":"0","value":0},{"range":"1","value":2},{"range":"2,200","value":6}]
         */
        private String weightConfig;

        /**
         * 更新日志
         */
        private String updateLog;

        /**
         * 权重类型
         */
        public static final int OTA_WEIGHT_CONFIG = 1;
        public static final int SOLD_OUT_WEIGHT_CONFIG = 2;
        public static final int RATE_RISE_TIMES_WEIGHT_CONFIG = 3;
    }