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