package com.ga.common.excel;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ExcelImportResult {
    private int totalCount;
    private int successCount;
    private int errorCount;
    private int skipCount;
    private String errorFileId;
    private List<ExcelErrorRow> errors = new ArrayList<>();

    public void addSuccess(int n) { successCount += n; totalCount += n; }
    public void addError(ExcelErrorRow row) {
        errors.add(row);
        errorCount++;
        totalCount++;
    }
}
