使用Mybatis-Plus方法

master
Qin Dong Ming 2024-09-01 15:05:19 +08:00
parent e6aa86cc32
commit 12761154fb
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ public class EngIneController extends BaseController {
public Result findVersionByIds(@PathVariable("id") Long id) {
//使用mybatis-plus的查询方法
// return Result.success(engineVersionService.getByIds(id));
return Result.success(engineVersionService.list(new LambdaQueryWrapper<>() {{
eq(EngineVersion::getId, id);
return Result.success(engIneService.list(new LambdaQueryWrapper<>() {{
eq(EngineMaintenance::getId, id);
}}));
}