修复引用问题

This commit is contained in:
mazhicheng 2020-03-24 13:05:19 +08:00
parent 263a2cd163
commit fbf13f25e9
2 changed files with 2 additions and 4 deletions

View File

@ -36,8 +36,6 @@ import java.util.stream.Collectors;
@Slf4j
public class IamUserRoleServiceImpl extends BaseIamServiceImpl<IamUserRoleMapper, IamUserRole> implements IamUserRoleService {
@Autowired
private IamUserRoleService iamUserRoleService;
@Autowired
private IamRoleService iamRoleService;
@Autowired
@ -54,7 +52,7 @@ public class IamUserRoleServiceImpl extends BaseIamServiceImpl<IamUserRoleMapper
@Override
public List<IamRole> getUserRoleList(String userType, Long userId) {
List<IamUserRole> userRoleList = iamUserRoleService.getEntityList(Wrappers.<IamUserRole>lambdaQuery()
List<IamUserRole> userRoleList = getEntityList(Wrappers.<IamUserRole>lambdaQuery()
.select(IamUserRole::getRoleId)
.eq(IamUserRole::getUserType, userType)
.eq(IamUserRole::getUserId, userId)

View File

@ -40,7 +40,7 @@ import java.util.Map;
@ComponentScan(basePackages = {"com.diboot.iam"})
@MapperScan(basePackages={"com.diboot.iam.mapper"})
@AutoConfigureAfter(value = {DictionaryServiceImpl.class,
IamRoleServiceImpl.class, IamUserServiceImpl.class, IamUserRoleServiceImpl.class, IamAccountServiceImpl.class, IamFrontendPermissionServiceImpl.class,
IamRoleServiceImpl.class, IamUserServiceImpl.class, IamAccountServiceImpl.class, IamFrontendPermissionServiceImpl.class,
IamBaseInitializer.class, ShiroProxyConfig.class})
@Order(2)
public class IamBaseAutoConfig{