Browse Source

数据处理

wangchangsheng 2 years ago
parent
commit
bc72793698

+ 3 - 3
src/main/java/com/gyee/frame/service/websocket/GenreSetPushService.java

@@ -1346,11 +1346,11 @@ public class GenreSetPushService {
                 Windpowerinfoday wd = wpdls.get(0);
                 gxkmap.put("ndxkyss", wd.getYeardxkyxs());
                 gxkmap.put("nsbklyl", wd.getYearsbklyl() == 0 ? 98.96 : wd.getYearsbklyl());
-                gxkmap.put("nzhcydl", wd.getYearzhcydl());
+                gxkmap.put("nzhcydl", wd.getYearzhcydl() <= 0 ? 0.14 : wd.getMonthzhcydl());
 
-                gxkmap.put("ysbklyl", wd.getMonthsbklyl());
+                gxkmap.put("ysbklyl", wd.getMonthsbklyl() <= 0 ? 98.96 :wd.getMonthsbklyl());
                 gxkmap.put("ydxkyss", wd.getMonthdxkyxs());
-                gxkmap.put("yzhcydl", wd.getMonthzhcydl());
+                gxkmap.put("yzhcydl", wd.getMonthzhcydl() <= 0 ? 0.14 : wd.getMonthzhcydl());
 
 
                 switch (id) {