diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/profile/impl/UserRunProfileServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/profile/impl/UserRunProfileServiceImpl.java index 2516749c..f10f31bf 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/profile/impl/UserRunProfileServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/profile/impl/UserRunProfileServiceImpl.java @@ -438,7 +438,7 @@ public class UserRunProfileServiceImpl implements UserRunProfileService { @Override public void remove(Collection ids) { if (CollectionUtils.isNotEmpty(ids)) { - mongoTemplate.remove(Query.query(Criteria.where("id").in(ids)), UserRunProfile.class); + mongoTemplate.remove(Query.query(Criteria.where("_id").in(ids)), UserRunProfile.class); } }