feat(behaviour): 添加行为树系统核心功能模块
- 创建行为树主对象实体类Behaviortree,包含ID、名称、描述、创建时间、更新时间、英文名和XML内容字段 - 实现行为树控制器BehaviortreeController,提供增删改查和导出功能接口 - 开发行为树数据访问层,包括Mapper接口和MyBatis XML映射文件 - 构建行为树服务层接口及实现类,封装业务逻辑处理 - 添加节点连接、节点参数、节点模板、模板参数定义和行为树实例节点等相关实体和服务接口 - 实现节点连接管理功能,支持父子节点关系建立和执行顺序配置 - 提供完整的CRUD操作和权限控制,集成Excel导出功能
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Behaviortree;
|
||||
|
||||
/**
|
||||
* 行为树主Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface BehaviortreeMapper
|
||||
{
|
||||
/**
|
||||
* 查询行为树主
|
||||
*
|
||||
* @param id 行为树主主键
|
||||
* @return 行为树主
|
||||
*/
|
||||
public Behaviortree selectBehaviortreeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询行为树主列表
|
||||
*
|
||||
* @param behaviortree 行为树主
|
||||
* @return 行为树主集合
|
||||
*/
|
||||
public List<Behaviortree> selectBehaviortreeList(Behaviortree behaviortree);
|
||||
|
||||
/**
|
||||
* 新增行为树主
|
||||
*
|
||||
* @param behaviortree 行为树主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBehaviortree(Behaviortree behaviortree);
|
||||
|
||||
/**
|
||||
* 修改行为树主
|
||||
*
|
||||
* @param behaviortree 行为树主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBehaviortree(Behaviortree behaviortree);
|
||||
|
||||
/**
|
||||
* 删除行为树主
|
||||
*
|
||||
* @param id 行为树主主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBehaviortreeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除行为树主
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBehaviortreeByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Nodeconnection;
|
||||
|
||||
/**
|
||||
* 节点连接Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface NodeconnectionMapper
|
||||
{
|
||||
/**
|
||||
* 查询节点连接
|
||||
*
|
||||
* @param id 节点连接主键
|
||||
* @return 节点连接
|
||||
*/
|
||||
public Nodeconnection selectNodeconnectionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询节点连接列表
|
||||
*
|
||||
* @param nodeconnection 节点连接
|
||||
* @return 节点连接集合
|
||||
*/
|
||||
public List<Nodeconnection> selectNodeconnectionList(Nodeconnection nodeconnection);
|
||||
|
||||
/**
|
||||
* 新增节点连接
|
||||
*
|
||||
* @param nodeconnection 节点连接
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNodeconnection(Nodeconnection nodeconnection);
|
||||
|
||||
/**
|
||||
* 修改节点连接
|
||||
*
|
||||
* @param nodeconnection 节点连接
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNodeconnection(Nodeconnection nodeconnection);
|
||||
|
||||
/**
|
||||
* 删除节点连接
|
||||
*
|
||||
* @param id 节点连接主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeconnectionById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除节点连接
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeconnectionByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Nodeparameter;
|
||||
|
||||
/**
|
||||
* 节点参数Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface NodeparameterMapper
|
||||
{
|
||||
/**
|
||||
* 查询节点参数
|
||||
*
|
||||
* @param id 节点参数主键
|
||||
* @return 节点参数
|
||||
*/
|
||||
public Nodeparameter selectNodeparameterById(Long id);
|
||||
|
||||
/**
|
||||
* 查询节点参数列表
|
||||
*
|
||||
* @param nodeparameter 节点参数
|
||||
* @return 节点参数集合
|
||||
*/
|
||||
public List<Nodeparameter> selectNodeparameterList(Nodeparameter nodeparameter);
|
||||
|
||||
/**
|
||||
* 新增节点参数
|
||||
*
|
||||
* @param nodeparameter 节点参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNodeparameter(Nodeparameter nodeparameter);
|
||||
|
||||
/**
|
||||
* 修改节点参数
|
||||
*
|
||||
* @param nodeparameter 节点参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNodeparameter(Nodeparameter nodeparameter);
|
||||
|
||||
/**
|
||||
* 删除节点参数
|
||||
*
|
||||
* @param id 节点参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeparameterById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除节点参数
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeparameterByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Nodetemplate;
|
||||
|
||||
/**
|
||||
* 节点模板Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface NodetemplateMapper
|
||||
{
|
||||
/**
|
||||
* 查询节点模板
|
||||
*
|
||||
* @param id 节点模板主键
|
||||
* @return 节点模板
|
||||
*/
|
||||
public Nodetemplate selectNodetemplateById(Long id);
|
||||
|
||||
/**
|
||||
* 查询节点模板列表
|
||||
*
|
||||
* @param nodetemplate 节点模板
|
||||
* @return 节点模板集合
|
||||
*/
|
||||
public List<Nodetemplate> selectNodetemplateList(Nodetemplate nodetemplate);
|
||||
|
||||
/**
|
||||
* 新增节点模板
|
||||
*
|
||||
* @param nodetemplate 节点模板
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNodetemplate(Nodetemplate nodetemplate);
|
||||
|
||||
/**
|
||||
* 修改节点模板
|
||||
*
|
||||
* @param nodetemplate 节点模板
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNodetemplate(Nodetemplate nodetemplate);
|
||||
|
||||
/**
|
||||
* 删除节点模板
|
||||
*
|
||||
* @param id 节点模板主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodetemplateById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除节点模板
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodetemplateByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Templateparameterdef;
|
||||
|
||||
/**
|
||||
* 模板参数定义Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface TemplateparameterdefMapper
|
||||
{
|
||||
/**
|
||||
* 查询模板参数定义
|
||||
*
|
||||
* @param id 模板参数定义主键
|
||||
* @return 模板参数定义
|
||||
*/
|
||||
public Templateparameterdef selectTemplateparameterdefById(Long id);
|
||||
|
||||
/**
|
||||
* 查询模板参数定义列表
|
||||
*
|
||||
* @param templateparameterdef 模板参数定义
|
||||
* @return 模板参数定义集合
|
||||
*/
|
||||
public List<Templateparameterdef> selectTemplateparameterdefList(Templateparameterdef templateparameterdef);
|
||||
|
||||
/**
|
||||
* 新增模板参数定义
|
||||
*
|
||||
* @param templateparameterdef 模板参数定义
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTemplateparameterdef(Templateparameterdef templateparameterdef);
|
||||
|
||||
/**
|
||||
* 修改模板参数定义
|
||||
*
|
||||
* @param templateparameterdef 模板参数定义
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTemplateparameterdef(Templateparameterdef templateparameterdef);
|
||||
|
||||
/**
|
||||
* 删除模板参数定义
|
||||
*
|
||||
* @param id 模板参数定义主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTemplateparameterdefById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除模板参数定义
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTemplateparameterdefByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Treenodeinstance;
|
||||
|
||||
/**
|
||||
* 行为树实例节点Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface TreenodeinstanceMapper
|
||||
{
|
||||
/**
|
||||
* 查询行为树实例节点
|
||||
*
|
||||
* @param id 行为树实例节点主键
|
||||
* @return 行为树实例节点
|
||||
*/
|
||||
public Treenodeinstance selectTreenodeinstanceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询行为树实例节点列表
|
||||
*
|
||||
* @param treenodeinstance 行为树实例节点
|
||||
* @return 行为树实例节点集合
|
||||
*/
|
||||
public List<Treenodeinstance> selectTreenodeinstanceList(Treenodeinstance treenodeinstance);
|
||||
|
||||
/**
|
||||
* 新增行为树实例节点
|
||||
*
|
||||
* @param treenodeinstance 行为树实例节点
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTreenodeinstance(Treenodeinstance treenodeinstance);
|
||||
|
||||
/**
|
||||
* 修改行为树实例节点
|
||||
*
|
||||
* @param treenodeinstance 行为树实例节点
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTreenodeinstance(Treenodeinstance treenodeinstance);
|
||||
|
||||
/**
|
||||
* 删除行为树实例节点
|
||||
*
|
||||
* @param id 行为树实例节点主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTreenodeinstanceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除行为树实例节点
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTreenodeinstanceByIds(Long[] ids);
|
||||
}
|
||||
Reference in New Issue
Block a user