# WalkRoomDateinRate.java

    package cloud.wconnect.frontoffice.entity.walkroomrequest;

    import java.math.BigDecimal;

    import com.baomidou.mybatisplus.annotation.*;

    import java.io.Serializable;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

    /**
     * <p>
     *
     * </p>
     *
     * @author lichen
     * @since 2023-07-08
     */
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("walk_room_datein_rate_v2")
    public class WalkRoomDateinRate implements Serializable {

        private static final long serialVersionUID = 1L;

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

        /**
         * request form id
         */
        private Long reqId;

        /**
         * From 资产id
         */
        @TableField("from_hotel")
        private Integer fromPropertyId;

        /**
         * To 资产id
         */
        @TableField("to_hotel")
        private Integer toPropertyId;

        /**
         * 住店日(yyyyMMdd)
         */
        private Integer date;

        /**
         * 批量设置的walk rate
         */
        @TableField(updateStrategy = FieldStrategy.IGNORED)
        private BigDecimal rate;

        /**
         * 单独设置的walk rate
         */
        @TableField(updateStrategy = FieldStrategy.IGNORED)
        private BigDecimal rateByHand;

        /**
         * 更新人id
         */
        private Integer updateBy;

        /**
         * 更新时间
         */
        private Long updateTime;

        /**
         * reqId 和 date 组合成key
         * @return
         */
        public static String generateKey(Long reqId, Integer date){
            return reqId.toString() + "_" + date.toString();
        }

    }