# JournalListBO.java

    package cloud.wconnect.finance.pojo.bo.chargeback;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;

    import jakarta.validation.constraints.*;
    import java.math.BigDecimal;

    /**
     * BO: Journal List
     *
     * @author yyt
     * 2023/9/8
     */
    @Data
    public class JournalListBO {

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

        /**
         * 用户姓名
         */
        @NotBlank(message = "the guestName must not be blank")
        @Length(max = 60, message = "the guestName max length 60")
        private String guestName;

        /**
         * 卡号
         */
        @NotBlank(message = "the cardNumber must not be blank")
        @Length(max = 20, message = "the cardNumber max length 20")
        private String cardNumber;

        /**
         * 消费金额
         */
        @NotNull(message = "the debit must not be null")
        @DigitsCustom(integer = 8, message = "the debit format is incorrect")
        private BigDecimal debit;

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

        /**
         * 描述
         */
        @Length(max = 25, message = "the description max length is 25")
        private String description;

        /**
         * 确认编号
         */
        @Length(max = 30, message = "the confNumber max length is 30")
        private String confNumber;

    }