From ead00557209f14e506ff4115ac25cadfa08d3280 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 14 十一月 2024 15:35:41 +0800
Subject: [PATCH] 预测结果展示

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

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemStatusServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemStatusServiceImpl.java
index 545ef61..9ab41e0 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemStatusServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmItemStatusServiceImpl.java
@@ -23,7 +23,7 @@
     @Resource
     public MmItemStatusDao mmItemStatusDao;
 
-    public void recordStatus(String itemId, ItemRunStatusEnum status, Long duration) {
+    public void recordStatus(String itemId, ItemRunStatusEnum status, Long duration, Date runTime) {
         QueryWrapper<MmItemStatusEntity> queryWrapper = new QueryWrapper<>();
         queryWrapper.eq("item_id", itemId);
         MmItemStatusEntity entity = mmItemStatusDao.selectOne(queryWrapper);
@@ -31,12 +31,12 @@
             entity = new MmItemStatusEntity();
             entity.setId(UUID.randomUUID().toString());
             entity.setItemId(itemId);
-            entity.setLastTime(new Date());
+            entity.setLastTime(runTime);
             entity.setStatus(status.getCode());
             entity.setDuration(duration);
             mmItemStatusDao.insert(entity);
         } else {
-            entity.setLastTime(new Date());
+            entity.setLastTime(runTime);
             entity.setStatus(status.getCode());
             entity.setDuration(duration);
             mmItemStatusDao.updateById(entity);

--
Gitblit v1.9.3