You've already forked FrameTour-BE
注解优化
This commit is contained in:
@@ -72,9 +72,9 @@ public class AppScenicAccountController {
|
||||
if (account == null || account.getScenicId().isEmpty()) {
|
||||
return ApiResponse.fail("景区账号未绑定景区");
|
||||
}
|
||||
list = account.getScenicId().stream().map(id -> {
|
||||
return scenicService.getDetails(id).getData();
|
||||
}).toList();
|
||||
list = account.getScenicId().stream()
|
||||
.map(id -> scenicService.getDetails(id).getData())
|
||||
.toList();
|
||||
} else {
|
||||
list = adminScenicService.list(new ScenicReqQuery()).getData();
|
||||
}
|
||||
@@ -105,6 +105,7 @@ public class AppScenicAccountController {
|
||||
}
|
||||
|
||||
@GetMapping("/devices")
|
||||
@Deprecated
|
||||
public ApiResponse<List<DeviceRespVO>> getDeviceList() {
|
||||
String userId = BaseContextHandler.getUserId();
|
||||
ScenicAccountEntity account = accountService.getScenicAccountById(Long.valueOf(userId));
|
||||
|
Reference in New Issue
Block a user