From e691b98e02153c9c439d7f5acb468924572d75d9 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期四, 09 一月 2025 17:31:17 +0800
Subject: [PATCH] item动态时间粒度

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemResultJsonServiceImpl.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

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 165328f..7f7a424 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
@@ -30,7 +30,7 @@
         List<Object[]> result = new ArrayList<>();
         QueryWrapper<MmItemResultJsonEntity> wrapper = new QueryWrapper<>();
         wrapper.eq("outputid", outputId)
-                .eq("predicttime", predictTime);
+                .eq("predicttime", DateUtils.format(predictTime,timeFormat));
         MmItemResultJsonEntity data = baseDao.selectOne(wrapper);
         if (data == null || StringUtils.isBlank(data.getJsonvalue())) {
             return result;
@@ -48,4 +48,9 @@
         });
         return result;
     }
+
+    @Override
+    public void insert(List<MmItemResultJsonEntity> resultJsonList) {
+        baseDao.insertBatch(resultJsonList);
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3