zhizhijie
2026-10-20 ae2e7d9c5d06461b07047ad404b03e4341158305
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.trafficaudit.dataimport.dto;
 
import lombok.Data;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * 导入结果:成功条数、失败条数及失败行明细,另有不阻断导入的提醒(如未知码表码)明细
 */
@Data
public class ImportResult {
 
    private int success;
    private int fail;
    private List<String> failDetails;
    /** 不阻断导入的提醒(含 Excel 行号),前端一并展示 */
    private List<String> warnings = new ArrayList<String>();
 
    public ImportResult() {
    }
 
    public ImportResult(int success, int fail, List<String> failDetails) {
        this.success = success;
        this.fail = fail;
        this.failDetails = failDetails;
    }
 
    public ImportResult(int success, int fail, List<String> failDetails, List<String> warnings) {
        this.success = success;
        this.fail = fail;
        this.failDetails = failDetails;
        this.warnings = warnings == null ? new ArrayList<String>() : warnings;
    }
}