| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.UUID; |
| | | |
| | |
| | | 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)) { |