# CheckGuestExistQuery.java

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

    import cloud.wconnect.commonlib.cons.BaseConstant;
    import lombok.Data;

    import java.util.Objects;

    /**
     * Query: Check Guest Exist
     *
     * @author: yyt
     * 2024-10-31
     */
    @Data
    public class CheckGuestExistQuery {

        /**
         * id,新增时传0
         */
        private Long id;

        /**
         * first name
         */
        private String firstName;

        /**
         * last name
         */
        private String lastName;

        public Long getId() {
            return Objects.nonNull(this.id) && this.id > BaseConstant.ZERO ? this.id : null;
        }

    }