Quellcode durchsuchen

增加大屏数据管理sql
Merge branch 'master' of http://140.143.208.127:3000/luguang/tenant_coinage

liuhong vor 3 Wochen
Ursprung
Commit
ea68a5050b

+ 5 - 1
src/main/java/com/sy/coinage/workshop/controller/ScreenController.java

@@ -136,7 +136,11 @@ public class ScreenController {
             production.add(Double.parseDouble(yield));
             OptVO vo1 = new OptVO();
             vo1.setValue(String.valueOf(Integer.parseInt(yield)));
-            vo1.setName(yieldPer);
+            if (StringUtils.isNotBlank(yieldPer) && !"null".equals(yieldPer)) {
+                vo1.setName(yieldPer);
+            } else {
+                vo1.setName("0");
+            }
             production1.add(vo1);
         } else {
             production.add(0D);