From c33e44e4f1431d40c97054bfe01df3a68ad69197 Mon Sep 17 00:00:00 2001 From: zhouxiunai <154707516@qq.com> Date: Wed, 26 Dec 2018 09:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=9B=B8=E5=85=B3=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../omms/msgexchangeapi/entity/msg/SCHD.java | 289 +++++++++++------- .../msghandler/flop/BDPBHandler.java | 6 +- 2 files changed, 179 insertions(+), 116 deletions(-) diff --git a/src/main/java/com/gzzn/omms/msgexchangeapi/entity/msg/SCHD.java b/src/main/java/com/gzzn/omms/msgexchangeapi/entity/msg/SCHD.java index 9a5f43ac..176010e2 100644 --- a/src/main/java/com/gzzn/omms/msgexchangeapi/entity/msg/SCHD.java +++ b/src/main/java/com/gzzn/omms/msgexchangeapi/entity/msg/SCHD.java @@ -320,183 +320,242 @@ public class SCHD private final static long serialVersionUID = 1L; @XmlElement(name = "FLID", required = true) - @JsonProperty("FLID") - protected BigInteger flid; + @JsonProperty("FLID") + protected BigInteger flid;//航班id + @XmlElement(name = "ALCD", required = true) - @JsonProperty("ALCD") - protected String alcd; + @JsonProperty("ALCD") + protected String alcd;//airline code 航空公司代码 + @XmlElement(name = "ALSC") - @JsonProperty("ALSC") - protected String alsc; + @JsonProperty("ALSC") + protected String alsc;//airline subcompany code 航空公司子公司代码 + @XmlElement(name = "FLNO", required = true) - @JsonProperty("FLNO") - protected String flno; + @JsonProperty("FLNO") + protected String flno;//flight number 航班号 + @XmlElement(name = "MVIN", required = true) - @JsonProperty("MVIN") + @JsonProperty("MVIN") @XmlSchemaType(name = "string") - protected MOVEMENTINDICATOR mvin; + protected MOVEMENTINDICATOR mvin;//movement indicator 运行标识 + @XmlElement(name = "SODT", required = true) - @JsonProperty("SODT") - protected String sodt; + @JsonProperty("SODT") + protected String sodt;//航班计划日期/时间 STA 到达 ,STD 离港 + @XmlElement(name = "FLTY", required = true) - @JsonProperty("FLTY") - protected String flty; + @JsonProperty("FLTY") + protected String flty;//航班类型如客机、货机、军用、VIP等 + @XmlElement(name = "FLIN", required = true) - @JsonProperty("FLIN") + @JsonProperty("FLIN") @XmlSchemaType(name = "string") - protected DOMINTMIXRGNCODE flin; + protected DOMINTMIXRGNCODE flin;//Flight indicator 航班标识 + @XmlElement(name = "ROUT", required = true) - @JsonProperty("ROUT") - protected List rout; + @JsonProperty("ROUT") + protected List rout;//航线 + @XmlElement(name = "ACFT", required = true) - @JsonProperty("ACFT") - protected String acft; + @JsonProperty("ACFT") + protected String acft;//Aircraft type 航班使用的机型 + @XmlElement(name = "RENO") - @JsonProperty("RENO") - protected String reno; + @JsonProperty("RENO") + protected String reno;//Registration or tail number of flight 航班注册号或尾号 + @XmlElement(name = "TAOP") - @JsonProperty("TAOP") - protected String taop; + @JsonProperty("TAOP") + protected String taop;//Turnaround operator 承运人 + @XmlElement(name = "TAFL") - @JsonProperty("TAFL") - protected String tafl; + @JsonProperty("TAFL") + protected String tafl;//Turnaround flight number 承运航班号 + @XmlElement(name = "TAID") - @JsonProperty("TAID") - protected BigInteger taid; + @JsonProperty("TAID") + protected BigInteger taid;// 后接飞航班唯一的AODB ID + @XmlElement(name = "TRML") - @JsonProperty("TRML") - protected String trml; + @JsonProperty("TRML") + protected String trml;// Terminal 航班航站楼 + @XmlElement(name = "MAXP") - @JsonProperty("MAXP") - protected BigInteger maxp; + @JsonProperty("MAXP") + protected BigInteger maxp;//Maximum passengers 该航班最大载客数 + @XmlElement(name = "CSOP") - @JsonProperty("CSOP") - protected String csop; + @JsonProperty("CSOP") + protected String csop;//code share flight Operator 共享航班的主航班承运人代码 + @XmlElement(name = "CSFT") - @JsonProperty("CSFT") - protected String csft; + @JsonProperty("CSFT") + protected String csft;//code share flight Flight number 共享航班的主航班号 + @XmlElement(name = "MAID") - @JsonProperty("MAID") - protected BigInteger maid; + @JsonProperty("MAID") + protected BigInteger maid;//代码共享航班的主航班的唯一的master flight AODB ID + @XmlElement(name = "ESTT") - @JsonProperty("ESTT") - protected String estt; + @JsonProperty("ESTT") + protected String estt;//Estimated time of flight. 预计时间 + @XmlElement(name = "ACTT") - @JsonProperty("ACTT") - protected String actt; + @JsonProperty("ACTT") + protected String actt;//Actual time of flight. 实际时间 + @XmlElement(name = "CHDT") - @JsonProperty("CHDT") - protected List chdt; + @JsonProperty("CHDT") + protected List chdt;//chutes 多行李传送带数据 + @XmlElement(name = "GTDT") - @JsonProperty("GTDT") - protected List gtdt; + @JsonProperty("GTDT") + protected List gtdt;//gate data 航班登机门数据 + @XmlElement(name = "STND") - @JsonProperty("STND") - protected String stnd; + @JsonProperty("STND") + protected String stnd;// stand 航班当前停机位位置 + @XmlElement(name = "PSDT") - @JsonProperty("PSDT") - protected List psdt; + @JsonProperty("PSDT") + protected List psdt;//航班计划机位数据 plan stand data + @XmlElement(name = "CKDT") - @JsonProperty("CKDT") - protected List ckdt; + @JsonProperty("CKDT") + protected List ckdt;// check in counter data 值机位数据 + @XmlElement(name = "PHAG") - @JsonProperty("PHAG") - protected BigInteger phag; + @JsonProperty("PHAG") + protected BigInteger phag;//Passenger handling agent for flight 航班旅客处理柜员 + @XmlElement(name = "CNCL") - @JsonProperty("CNCL") - protected String cncl; + @JsonProperty("CNCL") + protected String cncl;//取消日期时间 + @XmlElement(name = "DELY") - @JsonProperty("DELY") - protected List dely; + @JsonProperty("DELY") + protected List dely;//延误信息数据 + @XmlElement(name = "REMC") - @JsonProperty("REMC") - protected String remc; + @JsonProperty("REMC") + protected String remc;// remarks 文本注释 + @XmlElement(name = "CLDT") - @JsonProperty("CLDT") - protected List cldt; + @JsonProperty("CLDT") + protected List cldt;//航班的行李传送转盘数据 + @XmlElement(name = "BOTM") - @JsonProperty("BOTM") - protected String botm; + @JsonProperty("BOTM") + protected String botm;//Boarding open time 离港航班登机开始时间 + @XmlElement(name = "LACL") - @JsonProperty("LACL") - protected String lacl; + @JsonProperty("LACL") + protected String lacl;// last call 离港航班最后通知时间 + @XmlElement(name = "FINT") - @JsonProperty("FINT") - protected String fint; + @JsonProperty("FINT") + protected String fint;//Finals Time. 最终时间。 + @XmlElement(name = "CHOT") - @JsonProperty("CHOT") - protected List chot; + @JsonProperty("CHOT") + protected List chot;// chocks time 轮挡时间数据 + @XmlElement(name = "APPT") - @JsonProperty("APPT") - protected String appt; + @JsonProperty("APPT") + protected String appt;//Approved time for departures 批准的离港时间 + @XmlElement(name = "EGSR") - @JsonProperty("EGSR") - protected String egsr; + @JsonProperty("EGSR") + protected String egsr;//Engine start request for departures 离港时引擎发动请求 + @XmlElement(name = "EGST") - @JsonProperty("EGST") - protected String egst; + @JsonProperty("EGST") + protected String egst;//Engine start time for departures 离港引擎发动时间 + @XmlElement(name = "FHAG") - @JsonProperty("FHAG") - protected BigInteger fhag; + @JsonProperty("FHAG") + protected BigInteger fhag;//Field (or Ground) Handling agent for flight. 航班的机坪(或外场)处理代理 + + @XmlElement(name = "MHAG") - @JsonProperty("MHAG") - protected BigInteger mhag; + @JsonProperty("MHAG") + protected BigInteger mhag;//Maintenance Handling agent for flight. 航班维护处理代理 + @XmlElement(name = "VIPP") - @JsonProperty("VIPP") - protected BigInteger vipp; + @JsonProperty("VIPP") + protected BigInteger vipp;//VIP passengers.当前航班的VIP旅客数 + @XmlElement(name = "VIPR") - @JsonProperty("VIPR") - protected BigInteger vipr; + @JsonProperty("VIPR") + protected BigInteger vipr;//VIP航班等级标志 一个单一数字表示VIP的 等级 + @XmlElement(name = "FDIV") - @JsonProperty("FDIV") - protected DIVERSIONDATA fdiv; + @JsonProperty("FDIV") + protected DIVERSIONDATA fdiv;//0表示不是VIP航 班 + @XmlElement(name = "FRET") - @JsonProperty("FRET") - protected RETURNDATA fret; + @JsonProperty("FRET") + protected RETURNDATA fret;//flight has returned 航班返回原因描述 + @XmlElement(name = "ABTM") - @JsonProperty("ABTM") - protected List abtm; + @JsonProperty("ABTM") + protected List abtm;//Air bridge time 登机桥时间数据 + @XmlElement(name = "FLAB") - @JsonProperty("FLAB") - protected ABORTDATA flab; + @JsonProperty("FLAB") + protected ABORTDATA flab;// flight’s landing has been aborted.航班着陆中止原因的描述 + @XmlElement(name = "SRVT") - @JsonProperty("SRVT") - protected List srvt; + @JsonProperty("SRVT") + protected List srvt;//service 服务数据 + @XmlElement(name = "VIPF") - @JsonProperty("VIPF") - protected List vipf; + @JsonProperty("VIPF") + protected List vipf;//VIP 数据 + @XmlElement(name = "LBNO") - @JsonProperty("LBNO") - protected BigInteger lbno; + @JsonProperty("LBNO") + protected BigInteger lbno;//No of local bags 离港航班本地值机行李件数 + @XmlElement(name = "LBWT") - @JsonProperty("LBWT") - protected BigDecimal lbwt; + @JsonProperty("LBWT") + protected BigDecimal lbwt;//Total local checked in bag weight for departure flights 离港航班本地值机行李总重量 + @XmlElement(name = "PAXC") - @JsonProperty("PAXC") - protected BigInteger paxc; + @JsonProperty("PAXC") + protected BigInteger paxc;//Total number of passengers on the flight 航班旅客总数 + @XmlElement(name = "ERUT", required = true) - @JsonProperty("ERUT") - protected List erut; + @JsonProperty("ERUT") + protected List erut;//完整航线的细节信息 和 rout 有区别 + @XmlElement(name = "EXSC") - @JsonProperty("EXSC") - protected String exsc; + @JsonProperty("EXSC") + protected String exsc;//Flight external status code 航班外部状态代码 + @XmlElement(name = "EXSR") - @JsonProperty("EXSR") - protected String exsr; + @JsonProperty("EXSR") + protected String exsr;//Flight external status remarks 航班外部状态备注 + @XmlElement(name = "FTSS", required = true) - @JsonProperty("FTSS") - protected String ftss; + @JsonProperty("FTSS") + protected String ftss;//Flight status 航班状态 + @XmlElement(name = "PEDT") - @JsonProperty("PEDT") + @JsonProperty("PEDT") protected String pedt; + @XmlElement(name = "NEAT") - @JsonProperty("NEAT") + @JsonProperty("NEAT") protected String neat; + @XmlElement(name = "PADT") - @JsonProperty("PADT") - protected String padt; + @JsonProperty("PADT") + protected String padt;//Actual departure time for previous step. 前站实际起飞时间 + @XmlElement(name = "NAAT") - @JsonProperty("NAAT") + @JsonProperty("NAAT") protected String naat; /** diff --git a/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/flop/BDPBHandler.java b/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/flop/BDPBHandler.java index eca567ae..517ad3b0 100644 --- a/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/flop/BDPBHandler.java +++ b/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/flop/BDPBHandler.java @@ -6,7 +6,11 @@ import org.slf4j.LoggerFactory; import com.gzzn.omms.msgexchangeapi.entity.msg.FLOP; import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD; import com.gzzn.omms.msgexchangeapi.msghandler.flop.base.FlopBaseHandler; - +/** + * 航班登机,旅客和行李事件 + * @author zhouxiunai + * + */ public class BDPBHandler extends FlopBaseHandler { private static Logger logger = LoggerFactory.getLogger(BDPBHandler.class);