# OutOfOrderBO.java

    package cloud.wconnect.frontoffice.pojo.bo.oooroom;

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

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.Pattern;

    /**
     * BO: Out Of Order
     *
     * @author yyt
     * 2023/7/26
     */
    @Data
    public class OutOfOrderBO {

        /**
         * 房间号
         */
        @NotBlank(message = "the roomNumber must not be blank")
        @Length(max = 10, message = "the roomNumber max length is 10")
        private String roomNumber;

        /**
         * 房型标识
         */
        @NotBlank(message = "the roomTypeSymbol must not be blank")
        @Length(max = 10, message = "the roomTypeSymbol max length is 10")
        private String roomTypeSymbol;

        /**
         * 开始日期，格式（2023-07-01）
         */
        @NotBlank(message = "the fromDate must not be blank")
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "The fromDate format is incorrect, right format is [yyyy-MM-dd]")
        private String fromDate;

        /**
         * 结束日期，格式（2023-07-01）
         */
        @NotBlank(message = "the toDate must not be blank")
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "The toDate format is incorrect, right format is [yyyy-MM-dd]")
        private String toDate;

        /**
         * 完成日期，格式（2023-07-01）
         */
        @NotBlank(message = "the completedDate must not be blank")
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "The completedDate format is incorrect, right format is [yyyy-MM-dd]")
        private String completedDate;

        /**
         * 备注
         */
        @NotBlank(message = "the remarks must not be blank")
        @Length(max = 1000, message = "the remarks max length is 1000")
        private String remarks;

    }