fix bug
This commit is contained in:
@@ -84,7 +84,8 @@ public class EquipmentController extends BaseController {
|
||||
@OperationLog
|
||||
@ApiOperation("根据id查询设备管理")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<Equipment> get(@PathVariable("id") Integer id) {
|
||||
public ApiResult<?> get(@PathVariable("id") Integer id) {
|
||||
if (getLoginUser() == null) return fail("请先登录");
|
||||
// return success(equipmentService.getById(id));
|
||||
// 使用关联查询
|
||||
return success(equipmentService.getByIdRel(id));
|
||||
|
||||
Reference in New Issue
Block a user