|
|
@@ -78,7 +78,7 @@ public class UpdateFlightStatusService { |
|
|
|
log.info("修改inspection status 结束"); |
|
|
|
|
|
|
|
// 处理通道数据 |
|
|
|
// this.liveChannelHandle(inspection, vo); |
|
|
|
this.liveChannelHandle(inspection, missionStatusRequest); |
|
|
|
|
|
|
|
// 将请求id和业务id消息存入数据库,用于监听获取任务信息 |
|
|
|
this.businessHandle(inspection, vo); |
|
|
@@ -93,12 +93,12 @@ public class UpdateFlightStatusService { |
|
|
|
* 处理通道数据 |
|
|
|
* |
|
|
|
* @param inspection |
|
|
|
* @param dspCallbackVo |
|
|
|
* @param missionStatusRequest |
|
|
|
*/ |
|
|
|
private void liveChannelHandle(Inspection inspection, DspCallbackRecordVo dspCallbackVo) { |
|
|
|
private void liveChannelHandle(Inspection inspection, MissionStatusRequest missionStatusRequest) { |
|
|
|
log.info("进入处理通道数据方法"); |
|
|
|
// 通道表新增 |
|
|
|
LiveChannel liveChannel = this.buildLiveChannel(inspection, dspCallbackVo); |
|
|
|
LiveChannel liveChannel = this.buildLiveChannel(inspection, missionStatusRequest); |
|
|
|
// 查验是否存在 |
|
|
|
LiveChannel liveChannelQuery = liveChannelMapper.selectOne(new LambdaQueryWrapper<LiveChannel>() |
|
|
|
.eq(LiveChannel::getInspectionId, inspection.getId()) |
|
|
@@ -114,16 +114,16 @@ public class UpdateFlightStatusService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private LiveChannel buildLiveChannel(Inspection inspection, DspCallbackRecordVo dspCallbackVo) { |
|
|
|
private LiveChannel buildLiveChannel(Inspection inspection, MissionStatusRequest missionStatusRequest) { |
|
|
|
LiveChannel liveChannel = new LiveChannel(); |
|
|
|
liveChannel.setTenantId(inspection.getTenantId()); |
|
|
|
liveChannel.setInspectionId(inspection.getId()); |
|
|
|
liveChannel.setChannelCode("0"); |
|
|
|
// liveChannel.setPushUrl(dspCallbackVo.getPushUrl()); |
|
|
|
// liveChannel.setPullUrl(dspCallbackVo.getPlayUrl()); |
|
|
|
// liveChannel.setAipushUrl(dspCallbackVo.getAipushUrl()); |
|
|
|
// liveChannel.setAipullUrl(dspCallbackVo.getAiplayUrl()); |
|
|
|
// liveChannel.setPlayUrl(dspCallbackVo.getPlayUrl()); |
|
|
|
liveChannel.setAipushUrl(""); |
|
|
|
liveChannel.setAipullUrl(""); |
|
|
|
liveChannel.setPushUrl(missionStatusRequest.getPushUrl()); |
|
|
|
liveChannel.setPullUrl(missionStatusRequest.getPlayUrl()); |
|
|
|
liveChannel.setPlayUrl(missionStatusRequest.getPlayUrl()); |
|
|
|
return liveChannel; |
|
|
|
} |
|
|
|
|