| | |
| | | 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); |