From 807efbe01d2781a688d2879c71dd1ce9296df520 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期二, 07 一月 2025 16:44:56 +0800
Subject: [PATCH] void insert(List<MmItemResultJsonEntity> resultJsonList);

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultServiceImpl.java     |    2 +-
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultJsonServiceImpl.java |    5 +++++
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmItemResultJsonService.java          |    2 ++
 3 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmItemResultJsonService.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmItemResultJsonService.java
index ef59ced..0709d14 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmItemResultJsonService.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmItemResultJsonService.java
@@ -16,4 +16,6 @@
     List<Object[]> getData(String outputId, Date predictTime, String timeFormat);
 
     String getDoubleData(String outputId, Date predictTime);
+
+    void insert(List<MmItemResultJsonEntity> resultJsonList);
 }
\ No newline at end of file
diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultJsonServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultJsonServiceImpl.java
index 8520d31..4f7c1fa 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultJsonServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultJsonServiceImpl.java
@@ -57,4 +57,9 @@
         MmItemResultJsonEntity mmItemResultJsonEntity = baseDao.selectOne(wrapper);
         return null == mmItemResultJsonEntity ? null : mmItemResultJsonEntity.getCumulant();
     }
+
+    @Override
+    public void insert(List<MmItemResultJsonEntity> resultJsonList) {
+        baseDao.insertBatch(resultJsonList);
+    }
 }
\ No newline at end of file
diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultServiceImpl.java
index 4ec89f5..2eb99cf 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultServiceImpl.java
@@ -80,7 +80,7 @@
             resultJsonList.add(resultJson);
         }
         // json结果存入mysql
-        mmItemResultJsonService.insertBatch(resultJsonList);
+        mmItemResultJsonService.insert(resultJsonList);
         // double结果存入influxdb
         influxDBService.asyncWriteModelResults(importList);
         influxDBService.asyncWriteModelResults(lastList);

--
Gitblit v1.9.3