更改Result字段为Result集合

This commit is contained in:
sanmao 2021-02-27 13:35:30 +08:00
parent 4a02f68073
commit 7bea6dea31
1 changed files with 8 additions and 8 deletions

View File

@ -9,6 +9,8 @@ import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
* GetFeedDocumentResponse Result Report
@ -33,8 +35,7 @@ public class ProcessingReport {
protected ProcessingSummary processingSummary;
@XmlElement(name = "Result")
protected Result result;
protected List<Result> result;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"messagesProcessed", "messagesSuccessful", "messagesWithError",
@ -200,11 +201,10 @@ public class ProcessingReport {
this.processingSummary = processingSummary;
}
public Result getResult() {
return result;
}
public void setResult(Result result) {
this.result = result;
public List<Result> getResult() {
if (result == null) {
result = new ArrayList<Result>();
}
return this.result;
}
}