From 37c27edd781380879966b1d9d5518a920acb6b62 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 18 三月 2025 09:57:09 +0800 Subject: [PATCH] columnItem.getDataLength() + 1 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java index ba11c8b..75f2d1a 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/sample/SampleInfoConstructor.java @@ -80,12 +80,14 @@ Date dateTime = new Date(); switch (ModelParamType.getEumByCode(columnItem.getParamType())) { case DATAPOINT: + dateTime = calculateTime(originalTime, true, columnItem.getDataLength(), columnItem.getGranularity()); + break; case PLAN: dateTime = calculateTime(originalTime, true, columnItem.getDataLength() + 1, columnItem.getGranularity()); break; case IND: case IND_ASCII: - dateTime = calculateTime(originalTime, true, columnItem.getDataLength(), columnItem.getGranularity()); + dateTime = calculateTime(originalTime, true, columnItem.getDataLength() - 1, columnItem.getGranularity()); break; case NORMALITEM: case MERGEITEM: @@ -111,10 +113,14 @@ calendar.setTime(originalTime); switch (ModelParamType.getEumByCode(columnItem.getParamType())) { case DATAPOINT: + dateTime = calculateTime(originalTime, true, 1, columnItem.getGranularity()); + break; case PLAN: + dateTime = calculateTime(originalTime, true, 1, columnItem.getGranularity()); + break; case IND: case IND_ASCII: - dateTime = calculateTime(originalTime, true, 1, columnItem.getGranularity()); + dateTime = originalTime; break; case NORMALITEM: case MERGEITEM: -- Gitblit v1.9.3