|
@@ -35,11 +35,19 @@ import static com.xy.utils.Beans.copy;
|
|
|
public class AlgorithmServiceImpl extends ServiceImpl<AlgorithmMapper, Algorithm> implements AlgorithmService {
|
|
|
|
|
|
@Override
|
|
|
- @ApiOperation("集合查询")
|
|
|
- public R<List<AlgorithmDto.Vo>> list(@RequestBody AlgorithmDto.SelectList selectList) {
|
|
|
- LambdaQueryWrapper<Algorithm> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(selectList, Algorithm.class).build();
|
|
|
+ @ApiOperation("所有字段列表")
|
|
|
+ public R<List<AlgorithmDto.ListAllColumn>> listAllColumn(@RequestBody AlgorithmDto.ListAllColumn listAllColumn) {
|
|
|
+ LambdaQueryWrapper<Algorithm> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(listAllColumn, Algorithm.class).build();
|
|
|
List<Algorithm> list = list(lambdaQueryWrapper);
|
|
|
- return R.ok(copy(AlgorithmDto.Vo.class, list));
|
|
|
+ return R.ok(copy(AlgorithmDto.ListAllColumn.class, list));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @ApiOperation("ID和Name列表")
|
|
|
+ public R<List<AlgorithmDto.ListNameId>> ListNameId(@RequestBody AlgorithmDto.ListNameId listNameId) {
|
|
|
+ LambdaQueryWrapper<Algorithm> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(listNameId, Algorithm.class).build();
|
|
|
+ List<Algorithm> list = list(lambdaQueryWrapper);
|
|
|
+ return R.ok(copy(AlgorithmDto.ListNameId.class, list));
|
|
|
}
|
|
|
|
|
|
@Override
|