From cc6270c5f434f93bf51f4c454e3de512be70b584 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期三, 02 四月 2025 13:10:33 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java index 6e1afbd..7effc8c 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java @@ -3,7 +3,6 @@ import com.iailab.framework.common.pojo.CommonResult; import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.common.util.date.DateUtils; -import com.iailab.framework.common.util.object.ConvertUtils; import com.iailab.framework.excel.core.util.ExcelUtils; import com.iailab.module.data.api.dto.DeviceValueDTO; import com.iailab.module.data.api.dto.IndexQueryDTO; @@ -19,8 +18,6 @@ import com.iailab.module.data.common.ApiDataQueryDTO; import com.iailab.module.data.common.ApiDataValueDTO; import com.iailab.module.data.common.utils.ApiSecurityUtils; -import com.iailab.module.data.ind.collection.IndItemCollector; -import com.iailab.module.data.ind.item.vo.IndItemValueVO; import com.iailab.module.data.plan.item.entity.PlanItemEntity; import com.iailab.module.data.plan.item.service.PlanItemService; import com.iailab.module.data.plan.item.vo.PlanItemValueExportVO; @@ -70,9 +67,6 @@ @Autowired private IndItemApi indItemApi; - - @Autowired - private IndItemCollector indItemCollector; @Autowired private PlanItemService planItemService; @@ -172,7 +166,8 @@ if (!PointDataTypeEnum.BOOLEAN.getCode().equals(dataType)) { BigDecimal decValue = new BigDecimal(value.toString()); if (PointDataTypeEnum.FLOAT.getCode().equals(dataType)) { - return decValue.setScale(2, BigDecimal.ROUND_HALF_UP); + // return decValue.setScale(2, BigDecimal.ROUND_HALF_UP); + return value; } else if (PointDataTypeEnum.INT.getCode().equals(dataType)) { decValue = decValue.setScale(0, BigDecimal.ROUND_HALF_UP); } -- Gitblit v1.9.3