|
|
@ -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 ""; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|