Skip to content

Commit e012e4b

Browse files
committed
feat: add Transactional for method
1 parent d43a226 commit e012e4b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

base/src/main/java/com/tinyengine/it/mcp/tools/GitFileReaderService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public class GitFileReaderService {
6464
* @param url The URL of the file to be read.
6565
* @return A JSON string representing the result of the operation, or an error message if the process fails.
6666
*/
67+
@Transactional(rollbackFor = Exception.class)
6768
@Tool(name="bundle_create",description = "通过给定的bundle.json文件URL同步物料库")
6869
public String readFileFromRepo(@ToolParam(description = "bundle.json文件地址,必须是可以在地址栏请求到的")String url) {
6970
try {
@@ -350,6 +351,7 @@ private List<Component> buildComponentList(BundleDto bundleDto, List<Map<String,
350351
*/
351352
@Transactional(rollbackFor = Exception.class)
352353
public Result<BundleResultDto> parseBundle(BundleDto bundleDto) {
354+
BundleMaterial materials = bundleDto.getMaterials();
353355

354356
List<Map<String, Object>> components = bundleDto.getMaterials().getComponents();
355357

0 commit comments

Comments
 (0)