|
|
@@ -225,12 +225,15 @@ public class AddInspectionService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 对接高德地图平台:将经纬度转换成巡逻地点 |
|
|
|
* 1)、飞手值飞才有经纬度 |
|
|
|
* 2)、机场巡逻没有经纬度,因此也不需要查看巡逻地点 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private JsonResult callGaode(Inspection inspection) { |
|
|
|
// 经纬度转换成巡逻地点 |
|
|
|
// 接口暂未调通,直接返回成功 |
|
|
|
if (InspectionTypeEnum.AIRPORT.getCode() == inspection.getInspectionType()) { |
|
|
|
return JsonResult.success(); |
|
|
|
} |
|
|
|
String patrolLocation = GaodeUtil.getGaodeAddress(inspection.getStartLongitude(), inspection.getStartLatitude()); |
|
|
|
if (StringUtils.isEmpty(patrolLocation)) { |
|
|
|
return JsonResult.error(AddInspectionCodeEnum.CALL_AMAP_IS_FAILED.getCode(), AddInspectionCodeEnum.CALL_AMAP_IS_FAILED.getMsg()); |