523096025 2 éve
szülő
commit
a6d3581c00

+ 2 - 6
huimv-admin/src/main/java/com/huimv/admin/service/impl/EnergyGasServiceImpl.java

@@ -72,19 +72,15 @@ public class EnergyGasServiceImpl extends ServiceImpl<EnergyGasMapper, EnergyGas
 
             if (ObjectUtil.isNotEmpty(energyGas)) {
                 count = count + Float.parseFloat(energyGas.getGasValue());
-            } else {
-                count = count + 0.00f;
             }
 
-            DecimalFormat df = new DecimalFormat("#.00");
-            jsonObject.put("value", df.format(count));
+//            DecimalFormat df = new DecimalFormat("#.00");
+            jsonObject.put("value",count );
             jsonObject.put("buildName", basePigpen.getBuildName());
             jsonObject.put("id", basePigpen.getId());
             jsonArray.add(jsonObject);
-
         }
 
-
         return new Result(ResultCode.SUCCESS, jsonArray);
     }