于紫祥_1901
2020-08-31 c3e1f9b9af29647bd157f2ea268bc56b2d3b9df1
src/main/java/com/moral/service/impl/WeatherServiceImpl.java
@@ -653,6 +653,14 @@
        if (nowHour < 8) {
            return resultList;
        }
        if (nowMinute >= 46) {
            nowHour = nowHour + 1;
            cal.setTime(now);
            cal.add(Calendar.HOUR_OF_DAY,1);
            format=sdf1.format(cal.getTime()).substring(0, 13) + ":00:00";
        }
        for (Map<String, Object> resultMap : resultList) {
            if (resultMap.get("type").equals("实测")) {
                if (sdf.parse(time).getTime() == sdf.parse(sdf.format(now)).getTime()) {
@@ -668,10 +676,6 @@
                    hashMap.put("end", endTime);
                    if (rhour == 0) {
                        rhour = 24;
                    }
                    if (nowMinute >= 46) {
                        nowHour = nowHour + 1;
                    }
                    if (rhour == nowHour) {
@@ -771,4 +775,5 @@
            }
        }
    }
}