Commit 90101303 authored by lisong's avatar lisong

修改bug

parent e017e1ca
......@@ -191,8 +191,10 @@ public class ConfigureController extends AbstractBaseController {
records.forEach(item -> {
String prefix = null;
String suffix = null;
String iotCode = item.get("iot_code").toString();
if (iotCode.length() > 8) {
String iotCode = null;
if (!ObjectUtils.isEmpty(item.get("iot_code"))) {
iotCode = item.get("iot_code").toString();
if (iotCode.length() > 8) {
prefix = iotCode.substring(0, 8);
suffix = iotCode.substring(8);
} else {
......@@ -223,7 +225,13 @@ public class ConfigureController extends AbstractBaseController {
e.printStackTrace();
}
}
}else {
item.put("carState", "无");
item.put("count", 0);
item.put("carStateDate", "--");
}
});
}
return CommonResponseUtil.success(fireCarInfoByWL);
}
......
......@@ -81,7 +81,7 @@ dcs.url.sendalarm=http://198.87.103.158:8001/alarm-service/appalarm/sendalarm
param.system.online.date = 2019-02-12
# 视频转码服务开关 hls(关)/flv(开),默认关闭,数字换流站使用时开启
window.vedioFormat = hls
window.vedioFormat = flv
window.vedioFormat.video = flv
# 航天视频服务地址
param.htvideo.url=http://192.168.4.174:9001;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment