Commit ee86c62e zshaohui

温湿度求平均值保留1位

1 个父辈 fc57988f
...@@ -79,6 +79,7 @@ public class BoxKanbanController { ...@@ -79,6 +79,7 @@ public class BoxKanbanController {
@Autowired @Autowired
IStoragePosManager storagePosManager; IStoragePosManager storagePosManager;
DecimalFormat df = new DecimalFormat("######0.0");
@ApiOperation("获取看板数据") @ApiOperation("获取看板数据")
@GetMapping @GetMapping
...@@ -426,7 +427,6 @@ public class BoxKanbanController { ...@@ -426,7 +427,6 @@ public class BoxKanbanController {
} }
private BoxStatusDto getBoxDto(Storage storage,List<DataLog> allTasks,Locale locale) { private BoxStatusDto getBoxDto(Storage storage,List<DataLog> allTasks,Locale locale) {
DecimalFormat df = new DecimalFormat("######0.00");
int inTask = 0; int inTask = 0;
int outTask = 0; int outTask = 0;
for (DataLog data : allTasks) { for (DataLog data : allTasks) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!