| | |
| | | import com.iailab.module.system.service.permission.MenuService; |
| | | import com.iailab.module.system.service.permission.PermissionService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | public AppDO getAppByTenantId(Long tenantId) { |
| | | //暂时支持一个租户对应一个应用 |
| | | List<AppDO> appDOS = appMapper.selectList(new LambdaQueryWrapper<AppDO>().eq(AppDO::getTenantId, tenantId)); |
| | | if(ObjectUtils.isNotEmpty(appDOS)) { |
| | | if(CollectionUtils.isNotEmpty(appDOS)) { |
| | | return appDOS.get(0); |
| | | } else { |
| | | AppDO appDO = new AppDO(); |