完成登机桥逻辑处理
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.gzzn.omms.msgexchangeapi.msghandler.flop;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
@@ -7,6 +9,7 @@ import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
|
||||
import com.gzzn.omms.msgexchangeapi.basicdata.entity.OrmsStand;
|
||||
import com.gzzn.omms.msgexchangeapi.basicdata.manager.OrmsStandAirbridgeManager;
|
||||
import com.gzzn.omms.msgexchangeapi.basicdata.manager.OrmsStandManager;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.FLOP;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.OPTSTANDDATA;
|
||||
@@ -67,8 +70,28 @@ public class PSDTHandler extends FlopBaseHandler {
|
||||
//获取机位对应的登机桥
|
||||
if("near".equalsIgnoreCase(ormsStand.getStandType()))
|
||||
{
|
||||
String abdg = standata.getPSST();//登机桥
|
||||
fltr.setAbdg(abdg);//登机桥叠加
|
||||
String standCode = standata.getPSST();//登机桥
|
||||
|
||||
List<String> lsBridge = new ArrayList<String>();
|
||||
try {
|
||||
lsBridge = OrmsStandAirbridgeManager
|
||||
.getInstance()
|
||||
.getAirbridgeCodeByStandCodeCode(standCode);
|
||||
} catch (IOException e) {
|
||||
logger.error("获取登机桥信息失败:{}",e.getMessage());
|
||||
}
|
||||
|
||||
StringBuffer abdgBuffer = new StringBuffer();
|
||||
lsBridge.forEach(node->{
|
||||
abdgBuffer.append(node);
|
||||
abdgBuffer.append(",");
|
||||
});
|
||||
if(abdgBuffer.toString().endsWith(","))
|
||||
{
|
||||
abdgBuffer.deleteCharAt(abdgBuffer.length() - 1);
|
||||
}
|
||||
|
||||
fltr.setAbdg(abdgBuffer.toString());//登机桥叠加
|
||||
}
|
||||
} //添加新数据
|
||||
|
||||
|
||||
Reference in New Issue
Block a user