diff --git a/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/dao/UserApplyDao.java b/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/dao/UserApplyDao.java index b52920fb..df6e75e6 100644 --- a/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/dao/UserApplyDao.java +++ b/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/dao/UserApplyDao.java @@ -29,7 +29,7 @@ public class UserApplyDao extends ServiceImpl { public UserApply getFriendApproving(Long uid, Long targetUid) { return lambdaQuery().eq(UserApply::getUid, uid) .eq(UserApply::getTargetId, targetUid) - .eq(UserApply::getStatus, ApplyStatusEnum.WAIT_APPROVAL) + .eq(UserApply::getStatus, ApplyStatusEnum.WAIT_APPROVAL.getCode()) .eq(UserApply::getType, ApplyTypeEnum.ADD_FRIEND.getCode()) .one(); }