Explorar el Código

获取天气添加日志

tags/v1.2.0^2
wanjing hace 1 año
padre
commit
45b2542230
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar