Merge branch 'refs/heads/develop'

This commit is contained in:
MHW
2026-03-14 11:18:23 +08:00
9 changed files with 120 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package com.solution.web.controller.behaviour;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.solution.system.domain.AfsimScenario;
import com.solution.web.core.BehaviortreeProcessor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -114,4 +115,16 @@ public class BehaviortreeController extends BaseController
{
return toAjax(behaviortreeService.deleteBehaviortreeByIds(ids));
}
/**
* 保存场景配置
*/
@ApiOperation("保存场景配置")
@PostMapping("/saveSceneConfig")
@Log(title = "行为树主", businessType = BusinessType.INSERT)
public AjaxResult saveSceneConfig(@RequestBody AfsimScenario afsimScenario)
{
return toAjax(behaviortreeService.insert(afsimScenario));
}
}

View File

@@ -52,5 +52,4 @@ public class RuleController extends BaseController {
public AjaxResult getCommPlatformComponentNames(Integer scenarioId){
return success(ruleService.getCommPlatformComponentNames(scenarioId));
}
}

View File

@@ -170,4 +170,5 @@ public class BehaviortreeProcessor {
return instance;
}
}