From 7587c74159ce4026baa811f25f306510569ee54a Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 20 三月 2025 17:32:02 +0800 Subject: [PATCH] 数据分析 预警,建议 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java index 52b4efe..66a8bbf 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/DmModuleItemServiceImpl.java @@ -9,6 +9,7 @@ import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; +import java.util.ArrayList; import java.util.List; import java.util.UUID; @@ -32,6 +33,19 @@ dmModuleItemDao.updateById(moduleItem); } + @Override + public List<String> getModuleIdByItemId(List<String> itemIds) { + List<String> result = new ArrayList<String>(); + QueryWrapper<DmModuleItemEntity> queryWrapper = new QueryWrapper<>(); + queryWrapper.in("itemid", itemIds); + List<DmModuleItemEntity> list = dmModuleItemDao.selectList(queryWrapper); + if (CollectionUtils.isEmpty(list)) { + return result; + } + list.forEach(item -> result.add(item.getModuleid())); + return result; + } + public DmModuleItemEntity getByItemid(String itemid) { List<DmModuleItemEntity> list = dmModuleItemDao.selectList(new QueryWrapper<DmModuleItemEntity>().in("itemid", itemid)); if (CollectionUtils.isEmpty(list)) { -- Gitblit v1.9.3