From 1d598da62f16116852e0dcd2ed797782d7ddc93a Mon Sep 17 00:00:00 2001 From: zhouxiunai <154707516@qq.com> Date: Tue, 15 Jan 2019 16:44:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=88=AA=E7=8F=AD=E5=A4=87?= =?UTF-8?q?=E9=99=8D=E7=9A=84=E8=BF=90=E8=90=A5=E7=8A=B6=E6=80=81=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=92=8C=E5=BC=82=E5=B8=B8=E7=8A=B6=E6=80=81=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../msghandler/flop/FDIVHandler.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/flop/FDIVHandler.java b/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/flop/FDIVHandler.java index 6a363b86..db335357 100644 --- a/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/flop/FDIVHandler.java +++ b/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/flop/FDIVHandler.java @@ -4,11 +4,15 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; +import com.gzzn.omms.msgexchangeapi.entity.msg.ABNDATA; +import com.gzzn.omms.msgexchangeapi.entity.msg.ABNORMALTYPE; import com.gzzn.omms.msgexchangeapi.entity.msg.DIVERSIONDATA; import com.gzzn.omms.msgexchangeapi.entity.msg.FLOP; +import com.gzzn.omms.msgexchangeapi.entity.msg.FTSSTYPE; import com.gzzn.omms.msgexchangeapi.entity.msg.OPTDIVERSIONDATA; import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD; import com.gzzn.omms.msgexchangeapi.msghandler.flop.base.FlopBaseHandler; +import com.gzzn.omms.msgexchangeapi.utils.JsonUtil; /** * 航班转场事件 @@ -26,6 +30,28 @@ public class FDIVHandler extends FlopBaseHandler { DIVERSIONDATA diversionData = new DIVERSIONDATA(); BeanUtils.copyProperties(optDiversionData, diversionData); fltr.setFDIV(diversionData); + + + //设置运营状态信息 + fltr.setFTSS(FTSSTYPE.ALT.name()); + + + //更新航班异常信息,先清空旧的再加入新的 + for(int i=0;i