All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.shoulder.batch.dto.result.BatchProcessResult Maven / Gradle / Ivy

Go to download

Shoulder 扩展-批处理模块,提供批量数据导入、导出、异步校验、导入历史记录管理等能力。

There is a newer version: 0.8.1
Show newest version
package org.shoulder.batch.dto.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author lym
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ToString
@ApiModel(description = "批量处理结果——查询批量处理结果接口-返回DTO")
public class BatchProcessResult {

    @ApiModelProperty(required = true, value = "总数", dataType = "Integer", example = "1", position = 1)
    private Integer totalNum;

    @ApiModelProperty(required = true, value = "已处理个数", dataType = "Integer", example = "1", position = 2)
    private Integer processed;

    @ApiModelProperty(required = false, value = "成功个数", dataType = "Integer", example = "1", position = 3)
    private Integer successNum;

    /**
     * 重复数目未单独作为字段,在 fail 中
     */
    @ApiModelProperty(required = false, value = "失败个数", dataType = "Integer", example = "1", position = 4)
    private Integer failNum;

    @ApiModelProperty(required = true, value = "已执行时间,毫秒", dataType = "Integer", example = "1234", position = 5)
    private Integer timeConsumed;

    @ApiModelProperty(required = true, value = "预估剩余时间", dataType = "Integer", example = "1000", position = 6)
    private Integer timeLeft;

    @Deprecated
    @ApiModelProperty(required = true, value = "是否完成标识", dataType = "boolean", example = "true", position = 7)
    private Boolean finish;

    @ApiModelProperty(required = true, value = "状态", dataType = "Integer", example = "1", position = 8)
    private Integer status;

    /**
     * 查进度时暂不返回
     */
    @ApiModelProperty(required = false, value = "失败原因集合", dataType = "list", example = "[{\"reason\":\"reason\"," +
        "\"row\":1,\"reasonParam\":[\"xxx\"]}]", position = 9)
    private List progressList;


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy