diff --git a/src/main/java/com/cultural/heritage/controller/address/ContactsController.java b/src/main/java/com/cultural/heritage/controller/address/ContactsController.java index 9d4c547..b342901 100644 --- a/src/main/java/com/cultural/heritage/controller/address/ContactsController.java +++ b/src/main/java/com/cultural/heritage/controller/address/ContactsController.java @@ -132,7 +132,7 @@ public class ContactsController { User loginUser = userService.getLoginUser(request); Long userId = loginUser.getId(); LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(Contacts::getId, userId); + queryWrapper.eq(Contacts::getUserId, userId); List contactsList = contactsService.list(queryWrapper); Collections.reverse(contactsList); return ResultUtils.success(contactsList); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 85cbb4c..1ab53e5 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,6 @@ spring: profiles: - active: test + active: dev