# RevenueDailySummary.java

    package cloud.wconnect.rateshop.entity.revenue;

    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.experimental.Accessors;

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

    /**
     * <p>
     * Daily Sumamry 酒店运营相关信息
     * </p>
     *
     * @author lichen
     * @since 2024-03-23
     */
    @Getter
    @Setter
    @Accessors(chain = true)
    @TableName("revenue_daily_summary")
    public class RevenueDailySummary implements Serializable {

        private static final long serialVersionUID = 1L;

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

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

        /**
         * 日期
         */
        private Long theDate;

        /**
         * 小时。24表示final
         */
        private Integer theHour;

        /**
         * Rooms Available
         */
        private Integer roomsAvailable;

        /**
         * Total Rooms_Sold
         */
        private Integer totalRoomsSold;

        /**
         * 入住房间数
         */
        private Integer totalOcc;

        /**
         * OooRooms
         */
        private Integer oooRooms;

        /**
         * 入住率
         */
        private BigDecimal occ;

        /**
         * 散客预订房间数
         */
        private Integer transientRooms;

        /**
         * 团客预订房间数
         */
        private Integer groupRooms;

        /**
         * 同步时间
         */
        private Long syncTime;

        /**
         * Total Rooms
         */
        private Integer totalRooms;

        /**
         * Comp Rooms
         */
        private Integer compRooms;

        /**
         * final
         */
        public static final int FINAL_HOUR = 24;

        /**
         * 生成唯一的key
         *
         * @return java.lang.String
         * @author lichen
         * @date 2024/10/18
         */
        public String generateKey() {
            return propertyId.toString() + "_" + theDate.toString() + "_" + theHour;
        }
    }