记得上下班打卡 | git大法好,push需谨慎

Commit ec94d77d authored by jiangxiulong's avatar jiangxiulong

经纬度距离计算增加异常处理

parent 1f5e2acc
...@@ -175,13 +175,17 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService { ...@@ -175,13 +175,17 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
performancesInfo = checkAppStatusInfo(performancesInfo); performancesInfo = checkAppStatusInfo(performancesInfo);
performancesInfo.setMessage(KylinPerformanceStatusEnum.getName(performancesInfo.getAppStatus())); performancesInfo.setMessage(KylinPerformanceStatusEnum.getName(performancesInfo.getAppStatus()));
} catch (Exception e) { } catch (Exception e) {
log.debug(" ERROR PERFORMANCE DETAILS PERFORMANCE_ID : " + performancesId); log.error(" ERROR PERFORMANCE DETAILS PERFORMANCE_ID : " + performancesId);
} }
// 处理距离 // 处理距离
if (longitudeFrom != CommonConst.DFT_DOUBLE_VAL) { if (longitudeFrom != CommonConst.DFT_DOUBLE_VAL) {
String diffDistance = DistanceUtil.getDistance(longitudeFrom, latitudeFrom, Double.parseDouble(performancesInfo.getLongitude()), Double.parseDouble(performancesInfo.getLatitude())); try {
performancesInfo.setDiffDistance(diffDistance); String diffDistance = DistanceUtil.getDistance(longitudeFrom, latitudeFrom, Double.parseDouble(performancesInfo.getLongitude()), Double.parseDouble(performancesInfo.getLatitude()));
performancesInfo.setDiffDistance(diffDistance);
} catch (Exception e) {
log.error("演出详情 经纬度处理距离异常 e:{}", e);
}
} }
log.info(UserPathDto.setData("演出详情", "performancesId=" + performancesId + " latitudeFrom=" + latitudeFrom + " longitudeFrom=" + longitudeFrom, performancesInfo)); log.info(UserPathDto.setData("演出详情", "performancesId=" + performancesId + " latitudeFrom=" + latitudeFrom + " longitudeFrom=" + longitudeFrom, performancesInfo));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment