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