# StatisticsTypeQuery.java

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

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

    import jakarta.validation.constraints.NotNull;

    /**
     * 统计不同类型下的数量 和 金额 的查询条件
     *
     * @author lichen
     * @date 2023/12/11
     */
    @Data
    public class StatisticsTypeQuery {

        /**
         * 开始时间
         */
        @NotNull(message = "The startDate cannot be null")
        private Integer startDate;

        /**
         * 结束时间
         */
        @NotNull(message = "The endDate cannot be null")
        private Integer endDate;

        /**
         * 条件 1：错误/失误者 2：调账理由 3：类型 4：责任人
         */
        @NotNull(message = "The condition cannot be null")
        @Range(min = 1, max = 4, message = "The condition must between in [1:Error/Mistake maker,2:Adjustment reason,3:Request type,4:Duty user]")
        private Integer condition;

        /**
         * 条件
         */
        public static final int MISTAKE_BY = 1;
        public static final int ADJUSTMENT_REASON = 2;
        public static final int REQUEST_TYPE = 3;
        public static final int DUTY_USER = 4;

    }