# JournalBO.java

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

    import lombok.Data;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.Pattern;
    import java.util.List;

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

        /**
         * 资产
         */
        @NotBlank(message = "the property must not be empty")
        private String property;

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

        /**
         * journal
         */
        @Valid
        @NotEmpty(message = "the data must not be empty")
        private List<JournalListBO> data;

    }