From 6cca1cc74dc6ed64a169879d8116eb078d290d4e Mon Sep 17 00:00:00 2001 From: hzj <826100833@qq.com> Date: Mon, 21 Oct 2024 15:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PortableOfflLogServiceImpl.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/PortableOfflLogServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/PortableOfflLogServiceImpl.java index b1b5932..b6bbd13 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/PortableOfflLogServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/PortableOfflLogServiceImpl.java @@ -41,8 +41,10 @@ import com.njcn.system.pojo.po.DictData; import com.njcn.web.pojo.param.BaseParam; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections4.ListUtils; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang.StringUtils; +import org.apache.poi.ss.formula.functions.T; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; @@ -247,7 +249,7 @@ public class PortableOfflLogServiceImpl extends ServiceImpl> partition = ListUtils.partition(pqdData, 1500); + for (List sliceList : partition) { + List sublistAsOriginalListType = new ArrayList<>(sliceList); + pqdDataMapper.insertBatch(sublistAsOriginalListType); + } //min结果集解析入库后就不需要在解析了 minFlag = false; } @@ -457,7 +463,7 @@ public class PortableOfflLogServiceImpl extends ServiceImpl