Bug: Fix bug that job status does not get sent back when job is over

This commit is contained in:
Bingkun Li 2026-02-03 15:09:49 +08:00
parent ec5eb9a075
commit f09bb5b08f

View File

@ -283,23 +283,19 @@ public class JmJobStatusServiceImpl implements JmJobStatusService {
return;
}
endAirline(jobId, jobVo, uavVo, airlineVo, wsVo, nextAirline == null);
} else if (isBoot == 1 && aStatus == ExecStatusEnum.PROCESSING) {
if (overButSending) {
} else if (isBoot == 1 && aStatus == ExecStatusEnum.PROCESSING && overButSending) {
// 前一航线的图片没传完就开始了新航线
endAirline(jobId, jobVo, uavVo, airlineVo, wsVo, nextAirline == null);
if (nextAirline != null) {
startAirline(nextAirline, wsVo);
}
}
wsVo.setSarStatus(curr);
simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, wsVo);
} else {
return;
}
} // else {
// return;
// }
// 4.将更新后的状态推送到前端
// simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, wsVo);
wsVo.setSarStatus(curr);
simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, wsVo);
}
// 开启新航线