You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Builds a list of Component objects from the given BundleDto, components, and snippets. It maps the component data from the BundleDto to Component entities, and associates any relevant snippets based on the component names.
294
+
*
295
+
* @param bundleDto The BundleDto containing the framework information and materials.
296
+
* @param components A list of maps representing the component data to be converted into Component entities.
297
+
* @param snippets A list of Child objects representing the snippets that may be associated with the components.
298
+
* @return A list of Component objects constructed from the provided data.
@@ -351,7 +372,12 @@ public Result<BundleResultDto> parseBundle(BundleDto bundleDto) {
351
372
returnResult.success(bundleList);
352
373
}
353
374
354
-
375
+
/**
376
+
* Performs bulk creation or update of components based on the provided list. If a component already exists (based on certain conditions), it will be updated; otherwise, a new record will be created.
377
+
*
378
+
* @param componentList The list of components to be processed for creation or update.
379
+
* @return A FileResult object containing the count of inserted and updated records.
0 commit comments