|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.jeecg.modules.admin_aircraft_position.entity.AdminAircraftPosition;
|
|
import org.jeecg.modules.admin_aircraft_position.entity.AdminAircraftPosition;
|
|
import org.jeecg.modules.admin_dfdl_list.entity.AdminDfdlList;
|
|
import org.jeecg.modules.admin_dfdl_list.entity.AdminDfdlList;
|
|
|
|
|
|
@@ -14,6 +15,7 @@ import org.jeecg.modules.admin_dfdl_list.entity.AdminDfdlList;
|
|
* @Description:
|
|
* @Description:
|
|
* @date 2023/7/20 9:23
|
|
* @date 2023/7/20 9:23
|
|
*/
|
|
*/
|
|
|
|
+@Slf4j
|
|
public class HbttImfMsg extends ImfMsgAbstract {
|
|
public class HbttImfMsg extends ImfMsgAbstract {
|
|
public HbttImfMsg(String xmlStr) {
|
|
public HbttImfMsg(String xmlStr) {
|
|
super(xmlStr, ImfMsgType.HBTT);
|
|
super(xmlStr, ImfMsgType.HBTT);
|
|
@@ -28,6 +30,7 @@ public class HbttImfMsg extends ImfMsgAbstract {
|
|
String NAWC = getStrVal("/MSG/DFLT/NAWC");
|
|
String NAWC = getStrVal("/MSG/DFLT/NAWC");
|
|
AdminDfdlList oldPlan = getAdminDfdlListService().getById(FLID);
|
|
AdminDfdlList oldPlan = getAdminDfdlListService().getById(FLID);
|
|
if (oldPlan != null) {
|
|
if (oldPlan != null) {
|
|
|
|
+ log.info("航班号变更前:{}", oldPlan);
|
|
UpdateWrapper<AdminDfdlList> adminDfdlListUpdateWrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<AdminDfdlList> adminDfdlListUpdateWrapper = new UpdateWrapper<>();
|
|
adminDfdlListUpdateWrapper.eq("flid", FLID).eq("ffid", FFID).set("ffid", HBID).set("flno", NFLN).set("awcd", NAWC);
|
|
adminDfdlListUpdateWrapper.eq("flid", FLID).eq("ffid", FFID).set("ffid", HBID).set("flno", NFLN).set("awcd", NAWC);
|
|
boolean update = getAdminDfdlListService().update(adminDfdlListUpdateWrapper);
|
|
boolean update = getAdminDfdlListService().update(adminDfdlListUpdateWrapper);
|
|
@@ -41,6 +44,7 @@ public class HbttImfMsg extends ImfMsgAbstract {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
getRedisUtil().set(ImfMsgType.DFDL.getRedisKey() + FLID, adminDfdlJson);
|
|
getRedisUtil().set(ImfMsgType.DFDL.getRedisKey() + FLID, adminDfdlJson);
|
|
|
|
+ log.info("航班号变更后:{}", byId);
|
|
|
|
|
|
// 更新机位表
|
|
// 更新机位表
|
|
LambdaQueryWrapper<AdminAircraftPosition> adminAircraftPositionLambdaQueryWrapperWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<AdminAircraftPosition> adminAircraftPositionLambdaQueryWrapperWrapper = new LambdaQueryWrapper<>();
|