Browse Source

组权限bug

2024年8月6日14:10:58
thing_master
lishuai 1 year ago
parent
commit
fd690eb343
  1. 1
      modules/thing/src/main/java/com/thing/thing/relation/root/service/impl/IotThingRelationRootServiceImpl.java

1
modules/thing/src/main/java/com/thing/thing/relation/root/service/impl/IotThingRelationRootServiceImpl.java

@ -210,6 +210,7 @@ public class IotThingRelationRootServiceImpl extends BaseServiceImpl<IotThingRel
public List<String> findAllGroup() {
Optional<List<IotThingRelationRootEntity>> optional = Optional.ofNullable(mapper.selectListByQuery(QueryWrapper.create()
.select(IOT_THING_RELATION_ROOT_ENTITY.GROUP_NAME)
.eq(IotThingRelationRootEntity::getTenantCode,UserContext.getRealTenantCode())
.orderBy(IOT_THING_RELATION_ROOT_ENTITY.CREATE_DATE.desc())));
return optional.map(iotThingRelationRootEntities -> iotThingRelationRootEntities.stream()

Loading…
Cancel
Save