Commit 864570ba6db8fe8b1946a8e9485fdba6917c3b25

Authored by 芯火源
2 parents 3aa11a3d 87251f58

Merge branch 'master_dev' into 20230424

... ... @@ -367,7 +367,7 @@ public class DefaultDeviceStateService extends AbstractPartitionBasedService<Dev
367 367 tkDeviceStateLogDTO.setTenantId(tenantId);
368 368 tkDeviceStateLogDTO.setTbDeviceId(tbDeviceId);
369 369 tkDeviceStateLogDTO.setStatus(status);
370   - tkDeviceStateLogDTO.setDeviceName(deviceDTO.getName());
  370 + tkDeviceStateLogDTO.setDeviceName(StringUtils.isEmpty(deviceDTO.getAlias())?deviceDTO.getName():deviceDTO.getAlias());
371 371 tkDeviceStateLogDTO.setDeviceType(deviceDTO.getDeviceType());
372 372 tkDeviceStateLogDTO.setDeviceProfileName(deviceDTO.getDeviceProfile().getName());
373 373 tkDeviceStateLogDTO.setOrganizationName(deviceDTO.getOrganizationDTO().getName());
... ...