Browse Source

雷达视频

develop
王兴琳 3 months ago
parent
commit
b0a0908e4d
  1. 7
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

7
zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

@ -1126,8 +1126,10 @@ public class DcWarningServiceImpl implements IDcWarningService {
*/
@Override
public String getRadarIncidentVideo(String id) throws Exception {
String msg = "";
HashMap<String, Object> stringObjectHashMap = dcWarningMapper.selectDcWarningById(id);
if (!stringObjectHashMap.isEmpty()) {
// 时间
String givenTime = (String) stringObjectHashMap.get("warningTime");
@ -1164,8 +1166,11 @@ public class DcWarningServiceImpl implements IDcWarningService {
JsonNode data = objectMapper.readTree(jsonObject.get("data").toString());
// 使用 textValue() 方法获取纯字符串
String fileUrl = data.get("fileUrl").textValue();
return fileUrl;
return fileUrl;
}else {
return "";
}
}

Loading…
Cancel
Save