修改ABNDATA 异常数据结构。去除单独的body为key 根据type类型增加不同的key
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.gzzn.omms.msgexchangeapi.entity.msg;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
@@ -8,10 +10,22 @@ public class ABNDATA {
|
||||
@XmlElement(name = "TYPE", required = true)
|
||||
@JsonProperty("TYPE")
|
||||
protected ABNORMALTYPE type;
|
||||
|
||||
@XmlElement(name = "CNCL")
|
||||
@JsonProperty("CNCL")
|
||||
protected String cncl;//航班取消异常信息
|
||||
|
||||
@XmlElement(name = "BODY")
|
||||
@JsonProperty("BODY")
|
||||
protected Object body;//可变类型,根据Type 变化
|
||||
@XmlElement(name = "DELY")
|
||||
@JsonProperty("DELY")
|
||||
protected List<OPTDELAYDATA> dely;//航班延误异常信息
|
||||
|
||||
@XmlElement(name = "FDIV")
|
||||
@JsonProperty("FDIV")
|
||||
protected DIVERSIONDATA fdiv;//航班备降延误异常信息
|
||||
|
||||
@XmlElement(name = "FRET")
|
||||
@JsonProperty("FRET")
|
||||
protected RETURNDATA fret;//航班返航异常信息
|
||||
|
||||
public ABNORMALTYPE getType() {
|
||||
return type;
|
||||
@@ -21,11 +35,36 @@ public class ABNDATA {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Object getBody() {
|
||||
return body;
|
||||
|
||||
public String getCncl() {
|
||||
return cncl;
|
||||
}
|
||||
|
||||
public void setBody(Object body) {
|
||||
this.body = body;
|
||||
|
||||
public void setCncl(String cncl) {
|
||||
this.cncl = cncl;
|
||||
}
|
||||
|
||||
public List<OPTDELAYDATA> getDely() {
|
||||
return dely;
|
||||
}
|
||||
|
||||
public void setDely(List<OPTDELAYDATA> dely) {
|
||||
this.dely = dely;
|
||||
}
|
||||
|
||||
public DIVERSIONDATA getFdiv() {
|
||||
return fdiv;
|
||||
}
|
||||
|
||||
public void setFdiv(DIVERSIONDATA fdiv) {
|
||||
this.fdiv = fdiv;
|
||||
}
|
||||
|
||||
public RETURNDATA getFret() {
|
||||
return fret;
|
||||
}
|
||||
|
||||
public void setFret(RETURNDATA fret) {
|
||||
this.fret = fret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user