| | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | import com.yssh.config.InitConfig; |
| | | import com.yssh.utils.DateUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | public Map<String, Double> selectAccuracyAvg() { |
| | | Map<String, Double> result = new HashMap<String, Double>(); |
| | | Date nowDate = DateUtils.getNowDate(); |
| | | Date nowDate = InitConfig.getDate(); |
| | | Long beginTime = Long.parseLong(DateUtils.parseDateToStr(DateUtils.YYYYMMDDHH, DateUtils.getAPeriodOfTime(nowDate, -7, Calendar.DATE))); |
| | | Double thuAccuracy = thuAccuracyMapper.selectSevenDayAccuracyAvg(beginTime); |
| | | Double tempForecast = thuAccuracy == null ? 0.0 : thuAccuracy; |