package com.chushang.inspection.terminal.query;

import com.chushang.common.mybatis.annotation.Condition;
import com.chushang.common.mybatis.page.CommonParam;
import lombok.*;

import javax.validation.constraints.NotNull;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ConsumablesTotalQuery extends CommonParam {

    /**
     * 任务id
     */
    @Condition(name = "task_id")
    @NotNull(message = "任务id不能为空")
    private Long taskId;

    /**
     * 耗材来源
     */
    @Condition(name = "source")
    private Integer source;

    /**
     * 耗材类型
     */
    @Condition(name = "type")
    private Integer type;

    /**
     * 总数
     */
    @Condition(name = "total")
    private Long total;


}
