完善计划机位和登机桥联动变更,同时加入基础数据缓存
This commit is contained in:
@@ -4,6 +4,8 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
|
||||
import com.gzzn.omms.msgexchangeapi.basicdata.entity.OrmsStand;
|
||||
import com.gzzn.omms.msgexchangeapi.basicdata.manager.OrmsStandManager;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.FLOP;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.OPTSTANDDATA;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD;
|
||||
@@ -43,11 +45,24 @@ public class PSDTHandler extends FlopBaseHandler {
|
||||
BeanUtils.copyProperties(optStandata, standata);
|
||||
|
||||
fltr.getPSDT().add(standata);
|
||||
|
||||
//如果是近机位
|
||||
OrmsStand ormsStand = OrmsStandManager
|
||||
.getInstance()
|
||||
.getOrmsStandByStandCode(standata.getPSST());
|
||||
if(null == ormsStand)
|
||||
{
|
||||
logger.error("机位:{},基础数据获取失败",standata.getPSST());
|
||||
continue;
|
||||
}
|
||||
|
||||
if("near".equalsIgnoreCase(ormsStand.getStandType()))
|
||||
{
|
||||
String abdg = fltr.getAbdg() + "," + standata.getPSST();//登机桥
|
||||
fltr.setAbdg(abdg);//登机桥叠加
|
||||
}
|
||||
} //添加新数据
|
||||
|
||||
|
||||
//联动变更登机桥
|
||||
|
||||
return fltr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user