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