Browse Source

修改添加任务,任务类型为机场巡逻时,不传经纬度,不需要调高德接口

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
42ee83fdfa
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/add/AddInspectionService.java

+ 5
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/add/AddInspectionService.java View File

@@ -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());

Loading…
Cancel
Save