feige
2024-10-07 f57c5b200b97a01738ace0cfa06e991ee4c01460
zhang-content/src/main/java/com/ruoyi/service/impl/ZAuthorityServiceImpl.java
@@ -64,12 +64,13 @@
    public AuthorityDto getByCondition(AuthorityDto authorityDto) {
        SysUser user = SecurityUtils.getLoginUser().getUser();
        Long userId = user.getUserId();
        Integer clanId = user.getClanId();
        String familyName = authorityDto.getFamilyName();
        String modelName = authorityDto.getModelName();
        //根据家庭的名字查出家庭的id
        Long familyId = zfFamilyService.getByName(familyName).getId();
      //  Integer clanId = 0;
        Long familyId = zfFamilyService.getByName(familyName, clanId).getId();
        //根据模块的名字查出对应的权限码
        List<ZfCode> zfCodeList = zfCodeService.likeGetByName(modelName);