v1.1: 循环依赖修复

This commit is contained in:
lzm
2022-10-23 00:15:30 +08:00
parent 77d1aefef7
commit 5e35661d21
2 changed files with 4 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ import org.elasticsearch.script.Script;
import org.elasticsearch.search.sort.*;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.web.util.HtmlUtils;
@@ -106,6 +107,7 @@ public class RoomSearchService extends BaseService {
private static final Integer SEARCH_TYPE_USER = 2;
@Autowired
@Lazy
private UserBlackRecordService userBlackRecordService;
/**

View File

@@ -41,6 +41,7 @@ import com.github.pagehelper.PageHelper;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import redis.clients.jedis.Response;
@@ -86,6 +87,7 @@ public class UserInRoomService extends BaseService {
private UsersService usersService;
@Autowired
@Lazy
private UserBlackRecordService userBlackRecordService;
public RoomVo userIntoRoomV2(Long uid, Long roomUid, Long inviteUid, Byte behaveType, DeviceInfo deviceInfo){