Commit ddd27962328caf2d2564443a75f7764436b8f7da

Authored by xp.Huang
1 parent 5030194b

fix: 根据DeviceProfileId返回TbDeviceId列表

@@ -761,10 +761,10 @@ public class TkDeviceServiceImpl extends AbstractBaseService<DeviceMapper, TkDev @@ -761,10 +761,10 @@ public class TkDeviceServiceImpl extends AbstractBaseService<DeviceMapper, TkDev
761 organizationDevices.stream().forEach(entity->{ 761 organizationDevices.stream().forEach(entity->{
762 String organizationId = entity.getOrganizationId(); 762 String organizationId = entity.getOrganizationId();
763 if(null == result.get(organizationId)){ 763 if(null == result.get(organizationId)){
764 - result.put(organizationId,List.of(entity.getId())); 764 + result.put(organizationId,List.of(entity.getTbDeviceId()));
765 }else{ 765 }else{
766 ArrayList<String> deviceIds = new ArrayList<>(); 766 ArrayList<String> deviceIds = new ArrayList<>();
767 - deviceIds.add(entity.getId()); 767 + deviceIds.add(entity.getTbDeviceId());
768 deviceIds.addAll(result.get(organizationId)); 768 deviceIds.addAll(result.get(organizationId));
769 result.put(organizationId,deviceIds); 769 result.put(organizationId,deviceIds);
770 } 770 }