vince
2024-09-19 1346ece340481c2489dbc4ada7ddd73971991d44
src/main/java/com/fzzy/protocol/youxian0/analysis/AnalysisService.java
@@ -257,11 +257,11 @@
        GrainOutPut outPut = new GrainOutPut();
        double max = ReMessageBuilder.MAX_TEMP, min = ReMessageBuilder.MIN_TEMP, sumT = 0.0, sumNum = cableX * cableY * cableZ;
        double max = ReMessageBuilder.MAX_TEMP, min = ReMessageBuilder.MIN_TEMP, sumT = 0.0;
        List<GrainTemp> temperature = new ArrayList<>();
        //根号
        int cableNum = 1, position = 0;
        int cableNum = 1, position = 0,sumNum = 0;
        double curTemp;
        int x = 0, y = 0, z = 0;
@@ -281,8 +281,11 @@
            if (curTemp > max) {
                max = curTemp;
            }
            if (curTemp < min) {
            if (curTemp < min && new Double(curTemp).intValue()!= -100) {
                min = curTemp;
            }
            if(new Double(curTemp).intValue()!= -100){
                sumNum++;
            }
        }
@@ -328,7 +331,7 @@
            weatherStation.setId(device.getDeviceId());
        }
        weatherStation.setAirPressure(weather.getPressure());
        weatherStation.setHumidity(weather.getHumidity());
        weatherStation.setHumidity(weather.getHumidity().replaceAll("%",""));
        weatherStation.setPm(weather.getAir_pm25());
        weatherStation.setRadiation("0");
        weatherStation.setRainfallAmount(weather.getWea());