打印天气
This commit is contained in:
@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.bigscreen.domain.dto.WeatherQueryReq;
|
||||
import org.dromara.common.core.constant.HttpStatus;
|
||||
import org.dromara.common.core.exception.ServiceException;
|
||||
@ -41,6 +42,7 @@ import java.util.List;
|
||||
* @date 2025-03-20
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class HseSafetyLogServiceImpl extends ServiceImpl<HseSafetyLogMapper, HseSafetyLog>
|
||||
implements IHseSafetyLogService {
|
||||
|
||||
@ -248,6 +250,8 @@ public class HseSafetyLogServiceImpl extends ServiceImpl<HseSafetyLogMapper, Hse
|
||||
|
||||
@Override
|
||||
public WeatherVo getWeatherNowDaysList(WeatherQueryReq req) {
|
||||
//打印参数
|
||||
log.info("获取天气信息参数:{}", req);
|
||||
List<WeatherVo> weatherListVo = weatherManager.getWeatherListVo(req.getLng(), req.getLat(), WeatherConstant.THREE_DAYS_WEATHER_PATH);
|
||||
return weatherListVo.getFirst();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user