|
@@ -155,8 +155,10 @@ public class TDataDisplayController extends BaseController {
|
|
|
.map(mapGpsDto -> {
|
|
|
AjaxResult ajax = new AjaxResult();
|
|
|
List<Float> list = new ArrayList<>();
|
|
|
- list.add(mapGpsDto.getGps_long());
|
|
|
- list.add(mapGpsDto.getGps_lat());
|
|
|
+ if (mapGpsDto != null && mapGpsDto.getGps_long() != null && mapGpsDto.getGps_lat() != null) {
|
|
|
+ list.add(mapGpsDto.getGps_long());
|
|
|
+ list.add(mapGpsDto.getGps_lat());
|
|
|
+ }
|
|
|
ajax.put("lnglat", list);
|
|
|
return ajax;
|
|
|
}).filter(
|
|
@@ -285,6 +287,9 @@ public class TDataDisplayController extends BaseController {
|
|
|
}
|
|
|
|
|
|
public String checkDeviceType(Integer device_model) {
|
|
|
+ if (device_model == null) {
|
|
|
+ return "null";
|
|
|
+ }
|
|
|
SysDictData date = new SysDictData();
|
|
|
date.setDictType("sys_device_type");
|
|
|
List<SysDictData> selectDictDataList = sysDictDataService.selectDictDataList(date);
|