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 Integer airlineStatus;
|
||||||
|
|
||||||
|
private JmSarStatusDTO sarStatus;
|
||||||
|
|
||||||
public JmJobStatusWsDTO setPayload(Long payloadId, ExecStatusEnum payloadStatus) {
|
public JmJobStatusWsDTO setPayload(Long payloadId, ExecStatusEnum payloadStatus) {
|
||||||
this.payloadId = payloadId;
|
this.payloadId = payloadId;
|
||||||
this.payloadStatus = payloadStatus.getValue();
|
this.payloadStatus = payloadStatus.getValue();
|
||||||
@ -44,6 +46,11 @@ public class JmJobStatusWsDTO {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JmJobStatusWsDTO setSarStatus(JmSarStatusDTO sarStatus) {
|
||||||
|
this.sarStatus = sarStatus;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
// 默认任务是执行中的
|
// 默认任务是执行中的
|
||||||
public JmJobStatusWsDTO(Long jobId, Long uavId) {
|
public JmJobStatusWsDTO(Long jobId, Long uavId) {
|
||||||
this.jobId = jobId;
|
this.jobId = jobId;
|
||||||
|
|||||||
@ -292,8 +292,8 @@ public class JmJobStatusServiceImpl implements JmJobStatusService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, wsVo);
|
wsVo.setSarStatus(curr);
|
||||||
simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, curr);
|
simpMessageingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, wsVo);
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user