|
@@ -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);
|
|
|
}
|
|
|
|