| | |
| | | params.put("moduletype", moduletype); |
| | | QueryWrapper<DmModuleEntity> wrapper = getWrapper(params); |
| | | return dmModuleDao.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void updatePredictTime(String id, Date predictTime) { |
| | | DmModuleEntity entity = dmModuleDao.selectById(id); |
| | | if (entity == null) { |
| | | return; |
| | | } |
| | | entity.setPredicttime(predictTime); |
| | | dmModuleDao.updateById(entity); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> geModuleByIds(List<String> ids) { |
| | | List<String> result = new ArrayList<>(); |
| | | QueryWrapper<DmModuleEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.in("id", ids); |
| | | List<DmModuleEntity> list = dmModuleDao.selectList(wrapper); |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | return result; |
| | | } |
| | | list.forEach(item -> { |
| | | if (StringUtils.isNotBlank(item.getModulenavconfig())) { |
| | | result.addAll(Arrays.asList(item.getModulenavconfig().split(","))); |
| | | } |
| | | }); |
| | | return result; |
| | | } |
| | | |
| | | @Override |