Commit 7a40c437 authored by 韩桐桐's avatar 韩桐桐

fix(cyl):处理填充量出现的科学计数法

parent 7a4da9e4
......@@ -1331,11 +1331,11 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
HashMap<String, Object> temMap1 = new HashMap<>();
temMap1.put("data",seriesFillingTimesDataList);
temMap1.put("name","充装次数");
temMap1.put("stack","充装次数");
// temMap1.put("stack","充装次数");
HashMap<String, Object> temMap2 = new HashMap<>();
temMap2.put("data",seriesCumulativeFillingQuantityDataList);
temMap2.put("name","累计充装量");
temMap2.put("stack","累计充装量");
// temMap2.put("stack","累计充装量");
seriesData.add(temMap1);
seriesData.add(temMap2);
result.put("seriesData",seriesData);
......@@ -1378,7 +1378,7 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
resultMap.put(REGION_CODE, regionModel.getRegionCode());
resultMap.put(REGION_NAME, regionModel.getRegionName());
resultMap.put(FILLING_TIMES, uniqueCount);
resultMap.put(FILLING_QUANTITY, totalSum);
resultMap.put(FILLING_QUANTITY, Math.round(totalSum));
return resultMap;
} catch (IOException e) {
e.printStackTrace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment