完善更新逻辑,只有更新动态航班信息成功后才设定为已处理消息。
This commit is contained in:
@@ -63,10 +63,6 @@ public class SchdWaitRunner implements Runnable {
|
||||
}
|
||||
|
||||
|
||||
//更新返回消息为已处理
|
||||
cminmsgService.updateBatchProcessed(Arrays.asList(opCminmsg.get()));
|
||||
|
||||
|
||||
//更新
|
||||
logger.info("找到返回的动态航班计划,开始更新动态航班信息...");
|
||||
Boolean updateResult = flightInfoService.updateByDaySchd(opCminmsg.get());
|
||||
@@ -77,6 +73,9 @@ public class SchdWaitRunner implements Runnable {
|
||||
continue ;
|
||||
}
|
||||
|
||||
//更新返回消息为已处理
|
||||
cminmsgService.updateBatchProcessed(Arrays.asList(opCminmsg.get()));
|
||||
|
||||
//状态记录
|
||||
Long beginId = opCminmsg.get().getCminmsgsId();
|
||||
redisService.set(RedisKeyConstant.KEY_LASTBEGINID,beginId);
|
||||
|
||||
Reference in New Issue
Block a user