Преглед на файлове

获取天气添加日志

tags/v1.2.0^2
wanjing преди 1 година
родител
ревизия
45b2542230
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. +3
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java

+ 3
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java Целия файл

@@ -223,7 +223,9 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper,
@Override
public AirWeatherVO getWeather(Integer airportId) throws ServiceException {
log.info("获取天气信息");
log.info("获取天气信息11111");
log.info("获取天气信息, tenantId={}", ShiroUtils.getTenantId());
log.info("获取天气信息22222");
Tenant tenant = tenantMapper.selectById(ShiroUtils.getTenantId());
log.info("获取天气信息, tenant={}", tenant);
log.info("获取天气信息, airportUrl={}", tenant.getAirportUrl());
@@ -252,7 +254,7 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper,
} catch (Exception e) {
log.info("获取天气信息异常,url={}", url);
log.info("获取天气信息异常,param={}", param);
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "获取天气信息失败,请重试");
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "获取天气信息异常,请重试");
}
}


Loading…
Отказ
Запис