Add pushing sar status back frontend
This commit is contained in:
parent
c15252b7e6
commit
9065e49771
@ -32,6 +32,8 @@ public class JmJobStatusWsDTO {
|
||||
/** 航线状态 */
|
||||
private Integer airlineStatus;
|
||||
|
||||
private JmSarStatusDTO sarStatus;
|
||||
|
||||
public JmJobStatusWsDTO setPayload(Long payloadId, ExecStatusEnum payloadStatus) {
|
||||
this.payloadId = payloadId;
|
||||
this.payloadStatus = payloadStatus.getValue();
|
||||
@ -44,6 +46,11 @@ public class JmJobStatusWsDTO {
|
||||
return this;
|
||||
}
|
||||
|
||||
public JmJobStatusWsDTO setSarStatus(JmSarStatusDTO sarStatus) {
|
||||
this.sarStatus = sarStatus;
|
||||
return this;
|
||||
}
|
||||
|
||||
// 默认任务是执行中的
|
||||
public JmJobStatusWsDTO(Long jobId, Long uavId) {
|
||||
this.jobId = jobId;
|
||||
|
||||
@ -292,8 +292,8 @@ public class JmJobStatusServiceImpl implements JmJobStatusService {
|
||||
}
|
||||
}
|
||||
|
||||
// simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, wsVo);
|
||||
simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, curr);
|
||||
wsVo.setSarStatus(curr);
|
||||
simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, wsVo);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user