package com.chushang.inspection.terminal.query;

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

import javax.print.attribute.standard.MediaSize;
import javax.validation.constraints.NotNull;

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

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

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

    /**
     * 总数id
     */
    @Condition(name = "total_id", type = Condition.ConditionType.eq)
    private Long totalId;
}
