From a440ec3bfaa1363f5841100b8948d852971a2eb1 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 10 十二月 2024 13:19:58 +0800 Subject: [PATCH] MmPredictAlarmConfigService --- 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