|
@@ -187,7 +187,8 @@ public class DmpDeviceInfoServiceImpl extends AbstractCrudService<DmpDeviceInfoM
|
|
|
}
|
|
|
List<DmpDeviceInfo> deviceInfos = BeanMapperUtils.mapList(dmpDeviceExportVOS, DmpDeviceExportVO.class, DmpDeviceInfo.class);
|
|
|
long count = deviceInfos.stream()
|
|
|
- .peek(device -> device.setProductId(productId))
|
|
|
+ .peek(device -> {device.setProductId(productId);
|
|
|
+ device.setDeviceId(UUIDUtils.uuid());})
|
|
|
.filter(device -> StringUtils.isBlank(device.getDeviceName()) ||
|
|
|
StringUtils.isBlank(device.getDeviceName())
|
|
|
|| StringUtils.isBlank(device.getDeviceCode())
|