# TransientAndGroupLyDTO.java

    package cloud.wconnect.rateshop.pojo.dto.revenue;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;

    import jakarta.validation.constraints.Max;
    import jakarta.validation.constraints.Min;
    import jakarta.validation.constraints.NotNull;
    import java.math.BigDecimal;

    /**
     * DTO: Transient And Group Last year
     *
     * @author yyt
     * 2023/10/26
     */
    @Data
    public class TransientAndGroupLyDTO {

        /**
         * 日期
         */
        @NotNull(message = "the targetDate must not be null")
        private Long targetDate;

        /**
         * Occupancy
         */
        @DigitsCustom(integer = 6, message = "the occPercent is wrong format")
        @Min(value = 0, message = "the occPercent min value is 0")
        private BigDecimal occPercent;

        /**
         * Total Room Sold
         */
        private Integer totalRoomSold;

        /**
         * Transient
         */
        @Max(value = 1000000, message = "the transientRoomNum is wrong format")
        @Min(value = 0, message = "the transientRoomNum min value is 0")
        private Integer transientRoomNum;

        /**
         * Group
         */
        @Max(value = 1000000, message = "the groupRoomNum is wrong format")
        @Min(value = 0, message = "the groupRoomNum min value is 0")
        private Integer groupRoomNum;

        /**
         * ADR
         */
        @DigitsCustom(integer = 10, message = "the adr is wrong format")
        @Min(value = 0, message = "the adr min value is 0")
        private BigDecimal adr;

        //显示使用的字段-start
        /**
         * Day's End BAR rate
         */
        private BigDecimal rate;

        /**
         * 平台id
         */
        private Integer platformId;
        /**
         * 数据源ID
         */
        private Integer datasourceId;
        /**
         * 房价更新时间
         */
        private Long updateDateByRate;
        /**
         * 房价更新人
         */
        private Integer operatorIdByRate;
        /**
         * 房价更新人姓名
         */
        private String operatorNameByRate;
        //显示使用的字段-end

    }