Procházet zdrojové kódy

获取天气添加日志

tags/v1.2.0^2
wanjing před 1 rokem
rodič
revize
45b2542230
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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 Zobrazit soubor

@@ -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(), "获取天气信息异常,请重试");
}
}


Načítá se…
Zrušit
Uložit