|
@ -314,7 +314,13 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
try {
|
|
|
JSONObject monitorUrl = ysDeviceServicel.getDeviceLiveAddress(orderDO.getPatient(),devicePatientDeviceDos.get(0).getDeviceSn(),1,null);
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
map.put("monitorInfo",monitorUrl.getJSONObject(ResponseContant.resultMsg));
|
|
|
monitorUrl.put("infoStatus",result.getIntValue(ResponseContant.resultFlag));
|
|
|
if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail){
|
|
|
map.put("monitorInfo",monitorUrl.getString(ResponseContant.resultMsg));
|
|
|
}
|
|
|
else {
|
|
|
map.put("monitorInfo",monitorUrl.getJSONObject(ResponseContant.resultMsg));
|
|
|
}
|
|
|
emergencyOrderVO.setInformation(map);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
@ -1155,7 +1161,13 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
else{
|
|
|
try {
|
|
|
JSONObject monitorUrl = ysDeviceServicel.getDeviceLiveAddress(patient,devicePatientDeviceDos.get(0).getDeviceSn(),1,null);
|
|
|
result.put("monitorInfo",monitorUrl.getJSONObject("data"));
|
|
|
monitorUrl.put("infoStatus",result.getIntValue(ResponseContant.resultFlag));
|
|
|
if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail){
|
|
|
result.put("monitorInfo",monitorUrl.getString(ResponseContant.resultMsg));
|
|
|
}
|
|
|
else {
|
|
|
result.put("monitorInfo",monitorUrl.getJSONObject(ResponseContant.resultMsg));
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|