使用Mybatis-Plus方法
parent
e6aa86cc32
commit
12761154fb
|
@ -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);
|
||||
}}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue