|
@ -67,6 +67,7 @@ public class FabController { |
|
|
// [{"num":"1","type":"IN","device_code":"222","vehicle_type","1"}]
|
|
|
// [{"num":"1","type":"IN","device_code":"222","vehicle_type","1"}]
|
|
|
public ResponseEntity<Map> regionPoints(String regionCode){ |
|
|
public ResponseEntity<Map> regionPoints(String regionCode){ |
|
|
Assert.notBlank(regionCode,"请求参数不能为空"); |
|
|
Assert.notBlank(regionCode,"请求参数不能为空"); |
|
|
|
|
|
//TODO:改成查设备配置
|
|
|
SchBaseRegion baseRegion = iSchBaseRegionService.getOne(new QueryWrapper<SchBaseRegion>().eq("region_code", regionCode)); |
|
|
SchBaseRegion baseRegion = iSchBaseRegionService.getOne(new QueryWrapper<SchBaseRegion>().eq("region_code", regionCode)); |
|
|
String regionPoints = baseRegion.getRegion_points(); |
|
|
String regionPoints = baseRegion.getRegion_points(); |
|
|
List<DeviceConfig> deviceConfigs = JSONArray.parseArray(regionPoints, DeviceConfig.class); |
|
|
List<DeviceConfig> deviceConfigs = JSONArray.parseArray(regionPoints, DeviceConfig.class); |
|
|