同步代码
This commit is contained in:
parent
bae2199a7a
commit
69a42c9b5e
|
@ -58,7 +58,7 @@ public class LocationController {
|
|||
if (locations != null && !locations.isEmpty()) {
|
||||
locationRes = locations
|
||||
.stream()
|
||||
.map(location -> BeanUtil.copyProperties(location, LocationRes.class)).toList();
|
||||
.map(LocationRes::copyFrom).toList();
|
||||
}
|
||||
return Result.Success(SUCCESS, locationRes);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue