|
|
@ -1,6 +1,5 @@ |
|
|
|
package com.hnac.hzims.weather.service.impl; |
|
|
|
package com.hnac.hzims.weather.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException; |
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException; |
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
|
import com.google.common.base.Strings; |
|
|
|
import com.google.common.base.Strings; |
|
|
@ -8,8 +7,6 @@ import com.google.common.collect.Multimap; |
|
|
|
import com.hnac.hzims.hzimsweather.common.ApiEnum; |
|
|
|
import com.hnac.hzims.hzimsweather.common.ApiEnum; |
|
|
|
import com.hnac.hzims.hzimsweather.common.LangEnum; |
|
|
|
import com.hnac.hzims.hzimsweather.common.LangEnum; |
|
|
|
import com.hnac.hzims.hzimsweather.common.StatusEnum; |
|
|
|
import com.hnac.hzims.hzimsweather.common.StatusEnum; |
|
|
|
import com.hnac.hzims.hzimsweather.constants.WeatherConstant; |
|
|
|
|
|
|
|
import com.hnac.hzims.hzimsweather.response.HeWeatherResponse; |
|
|
|
|
|
|
|
import com.hnac.hzims.hzimsweather.response.weather.HeWeatherWeatherDailyResponse; |
|
|
|
import com.hnac.hzims.hzimsweather.response.weather.HeWeatherWeatherDailyResponse; |
|
|
|
import com.hnac.hzims.hzimsweather.response.weather.HeWeatherWeatherHourlyResponse; |
|
|
|
import com.hnac.hzims.hzimsweather.response.weather.HeWeatherWeatherHourlyResponse; |
|
|
|
import com.hnac.hzims.hzimsweather.response.weather.HeWeatherWeatherNowResponse; |
|
|
|
import com.hnac.hzims.hzimsweather.response.weather.HeWeatherWeatherNowResponse; |
|
|
@ -18,28 +15,12 @@ import com.hnac.hzims.weather.service.HeWeatherBaseService; |
|
|
|
import com.hnac.hzims.weather.service.HeWeatherWeatherService; |
|
|
|
import com.hnac.hzims.weather.service.HeWeatherWeatherService; |
|
|
|
import com.hnac.hzims.weather.util.HttpUtil; |
|
|
|
import com.hnac.hzims.weather.util.HttpUtil; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.collections.map.HashedMap; |
|
|
|
|
|
|
|
import org.apache.poi.ss.formula.functions.T; |
|
|
|
|
|
|
|
import org.springblade.core.http.HttpRequest; |
|
|
|
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.SpringUtil; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
|
|
|
|
import org.springframework.web.context.request.RequestContextHolder; |
|
|
|
|
|
|
|
import org.springframework.web.context.request.ServletRequestAttributes; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
|
|
|
import java.time.Duration; |
|
|
|
|
|
|
|
import java.time.LocalDate; |
|
|
|
|
|
|
|
import java.time.Period; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
|
|
|
|