|
|
@ -41,8 +41,8 @@ public class MatrixController { |
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary = "基质列表") |
|
|
|
@GetMapping("/list") |
|
|
|
public PageResult<Matrix> getAll(MatrixDTO dto) { |
|
|
|
@PostMapping("/list") |
|
|
|
public PageResult<Matrix> getAll(@RequestBody MatrixDTO dto) { |
|
|
|
IPage<Matrix> result = matrixService.page(new Page<>(dto.getPageNum(), dto.getPageSize()), new LambdaQueryWrapper<Matrix>() |
|
|
|
.like(dto.getMatrixName() != null, Matrix::getName, "%"+dto.getMatrixName()+"%")); |
|
|
|
return PageResult.success(result); |
|
|
|