调整定位
This commit is contained in:
+2
-2
@@ -182,7 +182,7 @@ public class DeptController extends BladeController {
|
|||||||
@Operation(summary = "同步OA公司")
|
@Operation(summary = "同步OA公司")
|
||||||
public R<OaOrgSyncPageVO> syncOaCompany(
|
public R<OaOrgSyncPageVO> syncOaCompany(
|
||||||
@RequestParam(defaultValue = "1") Integer current,
|
@RequestParam(defaultValue = "1") Integer current,
|
||||||
@RequestParam(defaultValue = "50") Integer size) {
|
@RequestParam(defaultValue = "20") Integer size) {
|
||||||
return R.data(oaSyncService.syncCompanyPage(current, size));
|
return R.data(oaSyncService.syncCompanyPage(current, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ public class DeptController extends BladeController {
|
|||||||
@Operation(summary = "同步OA部门")
|
@Operation(summary = "同步OA部门")
|
||||||
public R<OaOrgSyncPageVO> syncOaDepartment(
|
public R<OaOrgSyncPageVO> syncOaDepartment(
|
||||||
@RequestParam(defaultValue = "1") Integer current,
|
@RequestParam(defaultValue = "1") Integer current,
|
||||||
@RequestParam(defaultValue = "50") Integer size) {
|
@RequestParam(defaultValue = "20") Integer size) {
|
||||||
return R.data(oaSyncService.syncDepartmentPage(current, size));
|
return R.data(oaSyncService.syncDepartmentPage(current, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -321,7 +321,7 @@ public class OASyncServiceImpl implements IOASyncService {
|
|||||||
*/
|
*/
|
||||||
private OaOrgSyncPageVO syncCompanyFromOaPage(int current, int size) {
|
private OaOrgSyncPageVO syncCompanyFromOaPage(int current, int size) {
|
||||||
int pageNo = current < 1 ? 1 : current;
|
int pageNo = current < 1 ? 1 : current;
|
||||||
int pageSize = size < 1 ? 50 : Math.min(size, 200);
|
int pageSize = size < 1 ? 20 : Math.min(size, 200);
|
||||||
OACompanySearch companySearch = buildCompanySearch(null);
|
OACompanySearch companySearch = buildCompanySearch(null);
|
||||||
companySearch.setCurPage(pageNo);
|
companySearch.setCurPage(pageNo);
|
||||||
companySearch.setPageSize(pageSize);
|
companySearch.setPageSize(pageSize);
|
||||||
@@ -355,7 +355,7 @@ public class OASyncServiceImpl implements IOASyncService {
|
|||||||
*/
|
*/
|
||||||
private OaOrgSyncPageVO syncDepartmentFromOaPage(int current, int size) {
|
private OaOrgSyncPageVO syncDepartmentFromOaPage(int current, int size) {
|
||||||
int pageNo = current < 1 ? 1 : current;
|
int pageNo = current < 1 ? 1 : current;
|
||||||
int pageSize = size < 1 ? 50 : Math.min(size, 200);
|
int pageSize = size < 1 ? 20 : Math.min(size, 200);
|
||||||
String subCompanyIds = getSubCompanyIds();
|
String subCompanyIds = getSubCompanyIds();
|
||||||
if (StringUtils.isEmpty(subCompanyIds)) {
|
if (StringUtils.isEmpty(subCompanyIds)) {
|
||||||
ComposeLogUtil.getLastLog().warn("未查询到子公司查询参数,跳过部门同步");
|
ComposeLogUtil.getLastLog().warn("未查询到子公司查询参数,跳过部门同步");
|
||||||
@@ -420,7 +420,7 @@ public class OASyncServiceImpl implements IOASyncService {
|
|||||||
private OACompanySearch buildCompanySearch(Date startTime) {
|
private OACompanySearch buildCompanySearch(Date startTime) {
|
||||||
OACompanySearch companySearch = new OACompanySearch();
|
OACompanySearch companySearch = new OACompanySearch();
|
||||||
companySearch.setCurPage(1);
|
companySearch.setCurPage(1);
|
||||||
companySearch.setPageSize(50);
|
companySearch.setPageSize(20);
|
||||||
if (startTime != null) {
|
if (startTime != null) {
|
||||||
companySearch.setModified(DateUtil.format(startTime, DateUtil.PATTERN_DATETIME));
|
companySearch.setModified(DateUtil.format(startTime, DateUtil.PATTERN_DATETIME));
|
||||||
}
|
}
|
||||||
@@ -437,7 +437,7 @@ public class OASyncServiceImpl implements IOASyncService {
|
|||||||
private OADepartmentSearch buildDepartmentSearch(Date startTime, String subCompanyIds) {
|
private OADepartmentSearch buildDepartmentSearch(Date startTime, String subCompanyIds) {
|
||||||
OADepartmentSearch departmentSearch = new OADepartmentSearch();
|
OADepartmentSearch departmentSearch = new OADepartmentSearch();
|
||||||
departmentSearch.setCurPage(1);
|
departmentSearch.setCurPage(1);
|
||||||
departmentSearch.setPageSize(50);
|
departmentSearch.setPageSize(20);
|
||||||
departmentSearch.setSubcompanyid1(subCompanyIds);
|
departmentSearch.setSubcompanyid1(subCompanyIds);
|
||||||
if (startTime != null) {
|
if (startTime != null) {
|
||||||
departmentSearch.setModified(DateUtil.format(startTime, DateUtil.PATTERN_DATETIME));
|
departmentSearch.setModified(DateUtil.format(startTime, DateUtil.PATTERN_DATETIME));
|
||||||
|
|||||||
+1
-1
@@ -120,7 +120,7 @@ public class WaybillController extends BladeController {
|
|||||||
|
|
||||||
@PostMapping("/track")
|
@PostMapping("/track")
|
||||||
@ApiOperationSupport(order = 1)
|
@ApiOperationSupport(order = 1)
|
||||||
@Operation(summary = "车辆历史轨迹", description = "按运单绑定车牌 + 日期区间调用 LBS_LOCATE")
|
@Operation(summary = "车辆历史轨迹", description = "按运单绑定车牌 + 日期区间调用 LBS_TRACK")
|
||||||
public R<WaybillTrackVO> track(
|
public R<WaybillTrackVO> track(
|
||||||
@Parameter(description = "运单ID", required = true) @RequestParam Long id,
|
@Parameter(description = "运单ID", required = true) @RequestParam Long id,
|
||||||
@Parameter(description = "开始日期 YYYY-MM-DD", required = true) @RequestParam String startDate,
|
@Parameter(description = "开始日期 YYYY-MM-DD", required = true) @RequestParam String startDate,
|
||||||
|
|||||||
+52
-25
@@ -142,8 +142,8 @@ public class WaybillServiceImpl extends BaseServiceImpl<WaybillMapper, Waybill>
|
|||||||
public WaybillLocateVO locateVehicle(Long id) {
|
public WaybillLocateVO locateVehicle(Long id) {
|
||||||
Waybill waybill = requireWaybillWithVehicleNo(id, "无法实时定位");
|
Waybill waybill = requireWaybillWithVehicleNo(id, "无法实时定位");
|
||||||
String vehicleNo = waybill.getVehicleNo().trim();
|
String vehicleNo = waybill.getVehicleNo().trim();
|
||||||
LbsLocateResponse response = invokeLbsLocate(id, vehicleNo, new LbsLocateRequest(vehicleNo), "实时定位");
|
LbsLocateResponse response = invokeLbs(id, vehicleNo, new LbsLocateRequest(vehicleNo), false, "实时定位");
|
||||||
List<Map<String, Object>> pointMaps = extractLbsPointMaps(response.getData());
|
List<Map<String, Object>> pointMaps = extractLbsPointMaps(response);
|
||||||
if (pointMaps.isEmpty()) {
|
if (pointMaps.isEmpty()) {
|
||||||
throw new ServiceException("暂无车辆实时定位数据");
|
throw new ServiceException("暂无车辆实时定位数据");
|
||||||
}
|
}
|
||||||
@@ -159,9 +159,9 @@ public class WaybillServiceImpl extends BaseServiceImpl<WaybillMapper, Waybill>
|
|||||||
if (LocalDate.parse(normalizedStart).isAfter(LocalDate.parse(normalizedEnd))) {
|
if (LocalDate.parse(normalizedStart).isAfter(LocalDate.parse(normalizedEnd))) {
|
||||||
throw new ServiceException("开始日期不能晚于结束日期");
|
throw new ServiceException("开始日期不能晚于结束日期");
|
||||||
}
|
}
|
||||||
LbsLocateResponse response = invokeLbsLocate(id, vehicleNo,
|
LbsLocateResponse response = invokeLbs(id, vehicleNo,
|
||||||
new LbsLocateRequest(vehicleNo, normalizedStart, normalizedEnd), "历史轨迹");
|
new LbsLocateRequest(vehicleNo, normalizedStart, normalizedEnd), true, "历史轨迹");
|
||||||
List<Map<String, Object>> pointMaps = extractLbsPointMaps(response.getData());
|
List<Map<String, Object>> pointMaps = extractLbsPointMaps(response);
|
||||||
WaybillTrackVO trackVO = new WaybillTrackVO();
|
WaybillTrackVO trackVO = new WaybillTrackVO();
|
||||||
trackVO.setWaybillId(id);
|
trackVO.setWaybillId(id);
|
||||||
trackVO.setVehicleNo(vehicleNo);
|
trackVO.setVehicleNo(vehicleNo);
|
||||||
@@ -195,10 +195,11 @@ public class WaybillServiceImpl extends BaseServiceImpl<WaybillMapper, Waybill>
|
|||||||
return waybill;
|
return waybill;
|
||||||
}
|
}
|
||||||
|
|
||||||
private LbsLocateResponse invokeLbsLocate(Long waybillId, String vehicleNo, LbsLocateRequest request, String scene) {
|
private LbsLocateResponse invokeLbs(Long waybillId, String vehicleNo, LbsLocateRequest request,
|
||||||
|
boolean trackMode, String scene) {
|
||||||
LbsLocateResponse response;
|
LbsLocateResponse response;
|
||||||
try {
|
try {
|
||||||
response = lbsClient.locate(request);
|
response = trackMode ? lbsClient.track(request) : lbsClient.locate(request);
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
log.error("调用LBS{}失败 waybillId={}, vehicleNo={}", scene, waybillId, vehicleNo, exception);
|
log.error("调用LBS{}失败 waybillId={}, vehicleNo={}", scene, waybillId, vehicleNo, exception);
|
||||||
throw new ServiceException("调用车辆" + scene + "接口失败");
|
throw new ServiceException("调用车辆" + scene + "接口失败");
|
||||||
@@ -223,29 +224,55 @@ public class WaybillServiceImpl extends BaseServiceImpl<WaybillMapper, Waybill>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 提取 LBS 轨迹点列表,兼容 data 数组 或 data.list 数组
|
* 提取 LBS 轨迹点:优先 list,其次 obj,再兼容 data / data.list / data.obj
|
||||||
*/
|
*/
|
||||||
private List<Map<String, Object>> extractLbsPointMaps(JsonNode dataNode) {
|
private List<Map<String, Object>> extractLbsPointMaps(LbsLocateResponse response) {
|
||||||
List<Map<String, Object>> pointMaps = new ArrayList<>();
|
List<Map<String, Object>> pointMaps = new ArrayList<>();
|
||||||
if (dataNode == null || dataNode.isNull()) {
|
if (response == null) {
|
||||||
return pointMaps;
|
return pointMaps;
|
||||||
}
|
}
|
||||||
JsonNode listNode = dataNode;
|
appendLbsNodes(pointMaps, response.getList());
|
||||||
if (dataNode.isObject() && dataNode.has("list")) {
|
if (!pointMaps.isEmpty()) {
|
||||||
listNode = dataNode.get("list");
|
return pointMaps;
|
||||||
}
|
}
|
||||||
if (listNode != null && listNode.isArray()) {
|
appendLbsNodes(pointMaps, response.getObj());
|
||||||
for (JsonNode item : listNode) {
|
if (!pointMaps.isEmpty()) {
|
||||||
|
return pointMaps;
|
||||||
|
}
|
||||||
|
JsonNode dataNode = response.getData();
|
||||||
|
if (dataNode != null && !dataNode.isNull()) {
|
||||||
|
if (dataNode.isObject() && dataNode.has("list")) {
|
||||||
|
appendLbsNodes(pointMaps, dataNode.get("list"));
|
||||||
|
if (!pointMaps.isEmpty()) {
|
||||||
|
return pointMaps;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (dataNode.isObject() && dataNode.has("obj")) {
|
||||||
|
appendLbsNodes(pointMaps, dataNode.get("obj"));
|
||||||
|
if (!pointMaps.isEmpty()) {
|
||||||
|
return pointMaps;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
appendLbsNodes(pointMaps, dataNode);
|
||||||
|
}
|
||||||
|
return pointMaps;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void appendLbsNodes(List<Map<String, Object>> pointMaps, JsonNode node) {
|
||||||
|
if (node == null || node.isNull()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (node.isArray()) {
|
||||||
|
for (JsonNode item : node) {
|
||||||
if (item != null && item.isObject()) {
|
if (item != null && item.isObject()) {
|
||||||
pointMaps.add(JsonUtil.toMap(item.toString()));
|
pointMaps.add(JsonUtil.toMap(item.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return pointMaps;
|
return;
|
||||||
}
|
}
|
||||||
if (dataNode.isObject()) {
|
if (node.isObject()) {
|
||||||
pointMaps.add(JsonUtil.toMap(dataNode.toString()));
|
pointMaps.add(JsonUtil.toMap(node.toString()));
|
||||||
}
|
}
|
||||||
return pointMaps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -271,10 +298,10 @@ public class WaybillServiceImpl extends BaseServiceImpl<WaybillMapper, Waybill>
|
|||||||
target.setLongitude(firstDecimal(pointMap, "longitude", "lon", "lng", "x", "jd", "Longitude", "LON", "LNG", "JD", "X"));
|
target.setLongitude(firstDecimal(pointMap, "longitude", "lon", "lng", "x", "jd", "Longitude", "LON", "LNG", "JD", "X"));
|
||||||
target.setLatitude(firstDecimal(pointMap, "latitude", "lat", "y", "wd", "Latitude", "LAT", "WD", "Y"));
|
target.setLatitude(firstDecimal(pointMap, "latitude", "lat", "y", "wd", "Latitude", "LAT", "WD", "Y"));
|
||||||
target.setAddress(firstText(pointMap, "address", "addr", "adr", "wz", "Address", "ADDR", "ADR"));
|
target.setAddress(firstText(pointMap, "address", "addr", "adr", "wz", "Address", "ADDR", "ADR"));
|
||||||
target.setLocateTime(firstText(pointMap, "locationTime", "pos_time", "locateTime", "gpsTime", "gpstime", "time", "gpszdsj", "GPSTime", "Time"));
|
target.setLocateTime(firstText(pointMap, "utc", "locationTime", "pos_time", "locateTime", "gpsTime", "gpstime", "time", "gpszdsj", "GPSTime", "Time"));
|
||||||
target.setSpeed(firstText(pointMap, "speed", "v", "sd", "Speed", "SD", "V"));
|
target.setSpeed(firstText(pointMap, "spd", "speed", "v", "sd", "Speed", "SD", "V"));
|
||||||
target.setDirection(firstText(pointMap, "direct", "direction", "h", "fx", "Direction", "FX", "course", "H"));
|
target.setDirection(firstText(pointMap, "direct", "direction", "h", "fx", "Direction", "FX", "course", "H"));
|
||||||
String responseVehicleNo = firstText(pointMap, "cph", "vehicleNo", "plateNo", "CPH");
|
String responseVehicleNo = firstText(pointMap, "vno", "cph", "vehicleNo", "plateNo", "CPH", "VNO");
|
||||||
if (Func.isNotEmpty(responseVehicleNo)) {
|
if (Func.isNotEmpty(responseVehicleNo)) {
|
||||||
target.setVehicleNo(responseVehicleNo);
|
target.setVehicleNo(responseVehicleNo);
|
||||||
}
|
}
|
||||||
@@ -284,10 +311,10 @@ public class WaybillServiceImpl extends BaseServiceImpl<WaybillMapper, Waybill>
|
|||||||
target.setLongitude(firstDecimal(pointMap, "longitude", "lon", "lng", "x", "jd", "Longitude", "LON", "LNG", "JD", "X"));
|
target.setLongitude(firstDecimal(pointMap, "longitude", "lon", "lng", "x", "jd", "Longitude", "LON", "LNG", "JD", "X"));
|
||||||
target.setLatitude(firstDecimal(pointMap, "latitude", "lat", "y", "wd", "Latitude", "LAT", "WD", "Y"));
|
target.setLatitude(firstDecimal(pointMap, "latitude", "lat", "y", "wd", "Latitude", "LAT", "WD", "Y"));
|
||||||
target.setAddress(firstText(pointMap, "address", "addr", "adr", "wz", "Address", "ADDR", "ADR"));
|
target.setAddress(firstText(pointMap, "address", "addr", "adr", "wz", "Address", "ADDR", "ADR"));
|
||||||
target.setLocateTime(firstText(pointMap, "locationTime", "pos_time", "locateTime", "gpsTime", "gpstime", "time", "gpszdsj", "GPSTime", "Time"));
|
target.setLocateTime(firstText(pointMap, "utc", "locationTime", "pos_time", "locateTime", "gpsTime", "gpstime", "time", "gpszdsj", "GPSTime", "Time"));
|
||||||
target.setSpeed(firstText(pointMap, "speed", "v", "sd", "Speed", "SD", "V"));
|
target.setSpeed(firstText(pointMap, "spd", "speed", "v", "sd", "Speed", "SD", "V"));
|
||||||
target.setDirection(firstText(pointMap, "direct", "direction", "h", "fx", "Direction", "FX", "course", "H"));
|
target.setDirection(firstText(pointMap, "direct", "direction", "h", "fx", "Direction", "FX", "course", "H"));
|
||||||
String responseVehicleNo = firstText(pointMap, "cph", "vehicleNo", "plateNo", "CPH");
|
String responseVehicleNo = firstText(pointMap, "vno", "cph", "vehicleNo", "plateNo", "CPH", "VNO");
|
||||||
if (Func.isNotEmpty(responseVehicleNo)) {
|
if (Func.isNotEmpty(responseVehicleNo)) {
|
||||||
target.setVehicleNo(responseVehicleNo);
|
target.setVehicleNo(responseVehicleNo);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,5 @@ thirdParty:
|
|||||||
lbs:
|
lbs:
|
||||||
baseUrl: ${LBS_BASE_URL:http://172.16.204.83:38000}
|
baseUrl: ${LBS_BASE_URL:http://172.16.204.83:38000}
|
||||||
locateUrl: ${LBS_LOCATE_URL:/gwzh/LBS/LBS_LOCATE}
|
locateUrl: ${LBS_LOCATE_URL:/gwzh/LBS/LBS_LOCATE}
|
||||||
|
trackUrl: ${LBS_TRACK_URL:/gwzh/LBS/LBS_TRACK}
|
||||||
authorization: ${LBS_AUTHORIZATION:${OA_AUTHORIZATION:${IAM_SSO_AUTHORIZATION:Z3d6aF90bXMtOVJJU0RVN1U6YW0yYkcwWnBJZ0RQZmtrSjNaZkZjUDBSaGFuSEtxQng=}}}
|
authorization: ${LBS_AUTHORIZATION:${OA_AUTHORIZATION:${IAM_SSO_AUTHORIZATION:Z3d6aF90bXMtOVJJU0RVN1U6YW0yYkcwWnBJZ0RQZmtrSjNaZkZjUDBSaGFuSEtxQng=}}}
|
||||||
|
|||||||
+5
@@ -47,6 +47,11 @@ public class LbsProperties {
|
|||||||
*/
|
*/
|
||||||
private String locateUrl = "/gwzh/LBS/LBS_LOCATE";
|
private String locateUrl = "/gwzh/LBS/LBS_LOCATE";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 车辆历史轨迹路径
|
||||||
|
*/
|
||||||
|
private String trackUrl = "/gwzh/LBS/LBS_TRACK";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gwzh 网关 Authorization(Basic),与 OA 人员接口一致
|
* gwzh 网关 Authorization(Basic),与 OA 人员接口一致
|
||||||
*/
|
*/
|
||||||
|
|||||||
+9
@@ -48,4 +48,13 @@ public interface ILbsClient {
|
|||||||
*/
|
*/
|
||||||
@PostMapping("${thirdParty.lbs.locateUrl:/gwzh/LBS/LBS_LOCATE}")
|
@PostMapping("${thirdParty.lbs.locateUrl:/gwzh/LBS/LBS_LOCATE}")
|
||||||
LbsLocateResponse locate(@RequestBody LbsLocateRequest request);
|
LbsLocateResponse locate(@RequestBody LbsLocateRequest request);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 车辆历史轨迹
|
||||||
|
*
|
||||||
|
* @param request 请求(cph、start_date、end_date)
|
||||||
|
* @return 轨迹结果
|
||||||
|
*/
|
||||||
|
@PostMapping("${thirdParty.lbs.trackUrl:/gwzh/LBS/LBS_TRACK}")
|
||||||
|
LbsLocateResponse track(@RequestBody LbsLocateRequest request);
|
||||||
}
|
}
|
||||||
|
|||||||
+19
-5
@@ -34,7 +34,10 @@ import java.io.Serial;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LBS 定位/历史轨迹响应
|
* LBS 定位/历史轨迹响应。
|
||||||
|
* <p>
|
||||||
|
* 实际网关返回示例:
|
||||||
|
* {@code {"code":200,"obj":{...},"list":null,"msg":"OK"}}
|
||||||
*
|
*
|
||||||
* @author Chill
|
* @author Chill
|
||||||
*/
|
*/
|
||||||
@@ -51,7 +54,7 @@ public class LbsLocateResponse implements Serializable {
|
|||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 兼容 code 字段(网关常返回 "1")
|
* 响应代码(网关返回 200 或 "1")
|
||||||
*/
|
*/
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
@@ -66,7 +69,17 @@ public class LbsLocateResponse implements Serializable {
|
|||||||
private String message;
|
private String message;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定位/轨迹数据(数组,或 {list,total})
|
* 单点定位对象
|
||||||
|
*/
|
||||||
|
private JsonNode obj;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 历史轨迹点列表
|
||||||
|
*/
|
||||||
|
private JsonNode list;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 兼容旧字段 data
|
||||||
*/
|
*/
|
||||||
private JsonNode data;
|
private JsonNode data;
|
||||||
|
|
||||||
@@ -89,10 +102,11 @@ public class LbsLocateResponse implements Serializable {
|
|||||||
* 错误信息
|
* 错误信息
|
||||||
*/
|
*/
|
||||||
public String errorMessage() {
|
public String errorMessage() {
|
||||||
if (msg != null && !msg.isBlank()) {
|
if (msg != null && !msg.isBlank() && !"OK".equalsIgnoreCase(msg) && !"Success".equalsIgnoreCase(msg)) {
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
if (message != null && !message.isBlank()) {
|
if (message != null && !message.isBlank()
|
||||||
|
&& !"OK".equalsIgnoreCase(message) && !"Success".equalsIgnoreCase(message)) {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
return "LBS接口调用失败";
|
return "LBS接口调用失败";
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ thirdParty:
|
|||||||
# LBS 网关地址(车辆实时定位)
|
# LBS 网关地址(车辆实时定位)
|
||||||
baseUrl: http://172.16.204.83:38000
|
baseUrl: http://172.16.204.83:38000
|
||||||
locateUrl: /gwzh/LBS/LBS_LOCATE
|
locateUrl: /gwzh/LBS/LBS_LOCATE
|
||||||
|
trackUrl: /gwzh/LBS/LBS_TRACK
|
||||||
authorization: ${LBS_AUTHORIZATION:${OA_AUTHORIZATION:${IAM_SSO_AUTHORIZATION:Z3d6aF90bXMtOVJJU0RVN1U6YW0yYkcwWnBJZ0RQZmtrSjNaZkZjUDBSaGFuSEtxQng=}}}
|
authorization: ${LBS_AUTHORIZATION:${OA_AUTHORIZATION:${IAM_SSO_AUTHORIZATION:Z3d6aF90bXMtOVJJU0RVN1U6YW0yYkcwWnBJZ0RQZmtrSjNaZkZjUDBSaGFuSEtxQng=}}}
|
||||||
track:
|
track:
|
||||||
# 轨迹开放接口地址
|
# 轨迹开放接口地址
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ thirdParty:
|
|||||||
# LBS 网关地址(车辆实时定位)
|
# LBS 网关地址(车辆实时定位)
|
||||||
baseUrl: http://172.16.204.83:38000
|
baseUrl: http://172.16.204.83:38000
|
||||||
locateUrl: /gwzh/LBS/LBS_LOCATE
|
locateUrl: /gwzh/LBS/LBS_LOCATE
|
||||||
|
trackUrl: /gwzh/LBS/LBS_TRACK
|
||||||
authorization: ${LBS_AUTHORIZATION:${OA_AUTHORIZATION:${IAM_SSO_AUTHORIZATION:Z3d6aF90bXMtOVJJU0RVN1U6YW0yYkcwWnBJZ0RQZmtrSjNaZkZjUDBSaGFuSEtxQng=}}}
|
authorization: ${LBS_AUTHORIZATION:${OA_AUTHORIZATION:${IAM_SSO_AUTHORIZATION:Z3d6aF90bXMtOVJJU0RVN1U6YW0yYkcwWnBJZ0RQZmtrSjNaZkZjUDBSaGFuSEtxQng=}}}
|
||||||
track:
|
track:
|
||||||
# 轨迹开放接口地址
|
# 轨迹开放接口地址
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ thirdParty:
|
|||||||
# LBS 网关地址(车辆实时定位)
|
# LBS 网关地址(车辆实时定位)
|
||||||
baseUrl: ${LBS_BASE_URL:${OA_BASE_URL:http://172.16.204.83:38000}}
|
baseUrl: ${LBS_BASE_URL:${OA_BASE_URL:http://172.16.204.83:38000}}
|
||||||
locateUrl: ${LBS_LOCATE_URL:/gwzh/LBS/LBS_LOCATE}
|
locateUrl: ${LBS_LOCATE_URL:/gwzh/LBS/LBS_LOCATE}
|
||||||
|
trackUrl: ${LBS_TRACK_URL:/gwzh/LBS/LBS_TRACK}
|
||||||
authorization: ${LBS_AUTHORIZATION:${OA_AUTHORIZATION:${IAM_SSO_AUTHORIZATION:}}}
|
authorization: ${LBS_AUTHORIZATION:${OA_AUTHORIZATION:${IAM_SSO_AUTHORIZATION:}}}
|
||||||
track:
|
track:
|
||||||
# 轨迹开放接口地址
|
# 轨迹开放接口地址
|
||||||
|
|||||||
Reference in New Issue
Block a user