|
@@ -47,7 +47,7 @@ public class AlgorithmServiceImpl extends ServiceImpl<AlgorithmMapper, Algorithm
|
|
|
@Override
|
|
|
@ApiOperation("ID和Name列表")
|
|
|
public R<List<AlgorithmDto.ListNameId>> ListNameId() {
|
|
|
- LambdaQueryWrapper<Algorithm> lambdaQueryWrapper = Wrappers.<Algorithm>lambdaQuery().eq(Algorithm::getStatus, 1).select(Algorithm::getId, Algorithm::getName);
|
|
|
+ LambdaQueryWrapper<Algorithm> lambdaQueryWrapper = Wrappers.<Algorithm>lambdaQuery().eq(Algorithm::getStatus, 1).select(Algorithm::getId, Algorithm::getName, Algorithm::getAlias);
|
|
|
List<Algorithm> list = baseMapper.selectList(lambdaQueryWrapper);
|
|
|
return R.ok(copy(AlgorithmDto.ListNameId.class, list));
|
|
|
}
|
|
@@ -92,8 +92,8 @@ public class AlgorithmServiceImpl extends ServiceImpl<AlgorithmMapper, Algorithm
|
|
|
List<AlgorithmUtils.Algorithm> list = copy(AlgorithmUtils.Algorithm.class, list(null));
|
|
|
redisService.set(AlgorithmUtils.REDIS_KEY_LIST, list);
|
|
|
list.forEach(item -> {
|
|
|
- redisService.set(AlgorithmUtils.REDIS_KEY_OBJ+item.getId(),item);
|
|
|
+ redisService.set(AlgorithmUtils.REDIS_KEY_OBJ + item.getId(), item);
|
|
|
});
|
|
|
return R.ok("更新完成");
|
|
|
}
|
|
|
-}
|
|
|
+}
|