fetch:解决循环依赖

This commit is contained in:
root
2021-07-01 14:05:27 +08:00
parent 03162b8e85
commit af2bf00713
3 changed files with 6 additions and 0 deletions
@@ -17,6 +17,7 @@ import com.adc.da.sys.entity.UserEO;
import com.adc.da.utils.util.ListUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -38,6 +39,7 @@ public class TsUserServiceImpl extends ServiceImpl<TsUserDao, TsUser> implements
@Autowired
private ITsPositionService tsPositionService;
@Autowired
@Lazy
private ITsRoleService tsRoleService;
@Autowired
private ISarMenuService sarMenuService;