# AccountQuery.java

    package cloud.wconnect.finance.pojo.query.pl;

    import jakarta.validation.constraints.NotNull;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import java.util.List;

    /**
     * M3Row查询参数
     *
     * @author lichen
     * @date 2025/9/29
     */
    @Data
    public class AccountQuery {

        /**
         * 会计科目编号
         */
        private String accountNumber;

        /**
         * Account 名称
         */
        private String accountName;

        /**
         * 是否启用
         */
        private Boolean isActive;

        /**
         * 科目类型
         */
        @Range(min = 1, max = 2, message = "accountType must be between [1:Income 2:Expense]")
        private Integer accountType;

        @NotNull(message = "page cannot be null")
        private Integer page;

        @NotNull(message = "size cannot be null")
        private Integer size;

    }