Browse Source

直播接口返回正在直播的任务

tags/v1.2.0^2
chengwang 1 year ago
parent
commit
4b002861a0
2 changed files with 6 additions and 4 deletions
  1. +1
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryVideoService.java
  2. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/InspectionVideoVo.java

+ 1
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryVideoService.java View File

} }
//根据机场id查询对应正在巡检的任务 //根据机场id查询对应正在巡检的任务
Inspection inspection = inspectionMapper.selectInspectionByAirport(id); Inspection inspection = inspectionMapper.selectInspectionByAirport(id);
// Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>()
// .eq(Inspection::getAirportId, id)
// .eq(Inspection::getStatus, InspectionStatusEnum.IN_FLIGHT.getCode())
// .eq(Inspection::getMark, MarkEnum.VALID.getCode()));
if(ObjectUtils.isEmpty(inspection)){ if(ObjectUtils.isEmpty(inspection)){
return JsonResult.error(QueryVideoServiceEnum.INSPECTION_IS_NOT_EXIST.getCode(), QueryVideoServiceEnum.INSPECTION_IS_NOT_EXIST.getMsg()); return JsonResult.error(QueryVideoServiceEnum.INSPECTION_IS_NOT_EXIST.getCode(), QueryVideoServiceEnum.INSPECTION_IS_NOT_EXIST.getMsg());
} }
return JsonResult.error(QueryVideoServiceEnum.AIPULL_URL_IS_NOT_NULL.getCode(), QueryVideoServiceEnum.AIPULL_URL_IS_NOT_NULL.getMsg()); return JsonResult.error(QueryVideoServiceEnum.AIPULL_URL_IS_NOT_NULL.getCode(), QueryVideoServiceEnum.AIPULL_URL_IS_NOT_NULL.getMsg());
} }
vo.setAipullUrl(liveChannel.getAipullUrl()); vo.setAipullUrl(liveChannel.getAipullUrl());
vo.setInspectionId(inspection.getId());
} }


return JsonResult.success(vo); return JsonResult.success(vo);

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/InspectionVideoVo.java View File

* 直播地址 * 直播地址
*/ */
private String aipullUrl; private String aipullUrl;

/**
* 直播任务id
*/
private String inspectionId;
} }

Loading…
Cancel
Save