处理航班延误事件,更新航班运营状态。
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.gzzn.omms.msgexchangeapi.entity.msg;
|
||||
|
||||
/**
|
||||
* 航班运营状态类型
|
||||
* @author zhouxiunai
|
||||
*
|
||||
*/
|
||||
public enum FTSSTYPE {
|
||||
RCFLOP,//正常状态
|
||||
DLY, //延误状态
|
||||
CAN, //取消
|
||||
ALT, //备降
|
||||
RTN; //返航
|
||||
|
||||
|
||||
public String value() {
|
||||
return name();
|
||||
}
|
||||
|
||||
public static FTSSTYPE fromValue(String v) {
|
||||
return valueOf(v);
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import com.gzzn.omms.msgexchangeapi.entity.msg.ABNDATA;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.ABNORMALTYPE;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.DELAYDATA;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.FLOP;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.FTSSTYPE;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.OPTDELAYDATA;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD;
|
||||
import com.gzzn.omms.msgexchangeapi.msghandler.flop.base.FlopBaseHandler;
|
||||
@@ -32,9 +33,14 @@ public class DELYHandler extends FlopBaseHandler {
|
||||
{
|
||||
//清空航班异常信息中的延误信息
|
||||
fltr = clearDelyInfo(fltr);
|
||||
fltr.setFTSS(FTSSTYPE.RCFLOP.name());
|
||||
return fltr;
|
||||
}
|
||||
|
||||
|
||||
//航班运营状态
|
||||
fltr.setFTSS(FTSSTYPE.DLY.name());
|
||||
|
||||
//更新延误信息
|
||||
for (OPTDELAYDATA optdelaydata : flop.getDELY() ) {
|
||||
DELAYDATA delaydata = new DELAYDATA();
|
||||
|
||||
Reference in New Issue
Block a user