# WalkRoomQuery.java

    package cloud.wconnect.frontoffice.pojo.query.walkroomrequest;

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotNull;
    import java.util.List;

    /**
     * walkRoom 功能查询对象
     *
     * @author lichen
     * @date 2023/7/12
     */
    @Data
    public class WalkRoomQuery {

        /**
         * 查询类型 1：sent 2:receive
         */
        @NotNull(message = "The type cannot be null")
        @Range(min = 1, max = 2, message = "The type must be 1:Sent or 2:Receive")
        private Integer type;
        /**
         * 接收方资产ID
         */
        private List<Integer> receivePropertyIds;
        /**
         * Check-in Date 开始日期(yyyyMMdd)
         */
        private Integer checkInDateStart;
        /**
         * Check-in Date 结束日期(yyyyMMdd)
         */
        private Integer checkInDateEnd;
        /**
         * Check-out Date 开始日期(yyyyMMdd)
         */
        private Integer checkOutDateStart;
        /**
         * Check-out Date 结束日期(yyyyMMdd)
         */
        private Integer checkOutDateEnd;
        /**
         * 客人姓名
         */
        private String guestName;
        /**
         * 页码
         */
        @NotNull(message = "The page cannot be null")
        private Integer page;
        /**
         * 每页大小
         */
        @NotNull(message = "The size cannot be null")
        private Integer size;

        /**
         * 查询类型码值
         */
        public static final int TYPE_SENT = 1;
        public static final int TYPE_RECEIVE = 2;

    }