Commit ddd27962328caf2d2564443a75f7764436b8f7da
1 parent
5030194b
fix: 根据DeviceProfileId返回TbDeviceId列表
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -761,10 +761,10 @@ public class TkDeviceServiceImpl extends AbstractBaseService<DeviceMapper, TkDev |
761 | 761 | organizationDevices.stream().forEach(entity->{ |
762 | 762 | String organizationId = entity.getOrganizationId(); |
763 | 763 | if(null == result.get(organizationId)){ |
764 | - result.put(organizationId,List.of(entity.getId())); | |
764 | + result.put(organizationId,List.of(entity.getTbDeviceId())); | |
765 | 765 | }else{ |
766 | 766 | ArrayList<String> deviceIds = new ArrayList<>(); |
767 | - deviceIds.add(entity.getId()); | |
767 | + deviceIds.add(entity.getTbDeviceId()); | |
768 | 768 | deviceIds.addAll(result.get(organizationId)); |
769 | 769 | result.put(organizationId,deviceIds); |
770 | 770 | } | ... | ... |