优化航班延误的处理,添加航班延误增加航班异常信息功能

This commit is contained in:
zhouxiunai
2019-01-15 15:40:43 +08:00
parent 30a69b8cfa
commit 22f10ef7a2
5 changed files with 149 additions and 17 deletions
@@ -7,9 +7,25 @@ import com.fasterxml.jackson.annotation.JsonProperty;
public class ABNDATA {
@XmlElement(name = "TYPE", required = true)
@JsonProperty("TYPE")
protected String type;
protected ABNORMALTYPE type;
@XmlElement(name = "BODY")
@JsonProperty("BODY")
protected String body;//json 串或普通字符串,每个type一种
public ABNORMALTYPE getType() {
return type;
}
public void setType(ABNORMALTYPE type) {
this.type = type;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
}
@@ -0,0 +1,21 @@
package com.gzzn.omms.msgexchangeapi.entity.msg;
/**
* 异常状态类型
* @author 航班异常状态类型
*
*/
public enum ABNORMALTYPE {
DLY,
CAN,
RTN,
ALT;
public String value() {
return name();
}
public static ABNORMALTYPE fromValue(String v) {
return valueOf(v);
}
}
@@ -2063,6 +2063,16 @@ public class SCHD
this.lreno = lreno;
}
public List<ABNDATA> getAbn() {
if (abn == null) {
abn = new ArrayList<ABNDATA>();
}
return abn;
}
public void setAbn(List<ABNDATA> abn) {
this.abn = abn;
}
}
}