feat(behaviour): 添加行为树系统核心功能模块
- 创建行为树主对象实体类Behaviortree,包含ID、名称、描述、创建时间、更新时间、英文名和XML内容字段 - 实现行为树控制器BehaviortreeController,提供增删改查和导出功能接口 - 开发行为树数据访问层,包括Mapper接口和MyBatis XML映射文件 - 构建行为树服务层接口及实现类,封装业务逻辑处理 - 添加节点连接、节点参数、节点模板、模板参数定义和行为树实例节点等相关实体和服务接口 - 实现节点连接管理功能,支持父子节点关系建立和执行顺序配置 - 提供完整的CRUD操作和权限控制,集成Excel导出功能
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
package com.solution.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.solution.common.annotation.Excel;
|
||||
import com.solution.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 行为树主对象 behaviortree
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public class Behaviortree extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 行为树ID (主键) */
|
||||
private Long id;
|
||||
|
||||
/** 行为树名称 */
|
||||
@Excel(name = "行为树名称")
|
||||
private String name;
|
||||
|
||||
/** 行为树描述 */
|
||||
@Excel(name = "行为树描述")
|
||||
private String description;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
/** 最后更新时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date updatedAt;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String englishName;
|
||||
|
||||
/** 储存行为树的节点关系图 */
|
||||
@Excel(name = "储存行为树的节点关系图")
|
||||
private String xmlContent;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt)
|
||||
{
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Date getUpdatedAt()
|
||||
{
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setEnglishName(String englishName)
|
||||
{
|
||||
this.englishName = englishName;
|
||||
}
|
||||
|
||||
public String getEnglishName()
|
||||
{
|
||||
return englishName;
|
||||
}
|
||||
|
||||
public void setXmlContent(String xmlContent)
|
||||
{
|
||||
this.xmlContent = xmlContent;
|
||||
}
|
||||
|
||||
public String getXmlContent()
|
||||
{
|
||||
return xmlContent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("description", getDescription())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("updatedAt", getUpdatedAt())
|
||||
.append("englishName", getEnglishName())
|
||||
.append("xmlContent", getXmlContent())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.solution.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.solution.common.annotation.Excel;
|
||||
import com.solution.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 节点连接对象 nodeconnection
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public class Nodeconnection extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 连接ID (主键) */
|
||||
private Long id;
|
||||
|
||||
/** 父节点 (外键: TreeInstanceNode.id) */
|
||||
@Excel(name = "父节点 (外键: TreeInstanceNode.id)")
|
||||
private Long parentNodeId;
|
||||
|
||||
/** 子节点 (外键: TreeInstanceNode.id) */
|
||||
@Excel(name = "子节点 (外键: TreeInstanceNode.id)")
|
||||
private Long childNodeId;
|
||||
|
||||
/** 子节点在父节点下的执行顺序 (对于 Sequence/Selector 等很重要) */
|
||||
@Excel(name = "子节点在父节点下的执行顺序 (对于 Sequence/Selector 等很重要)")
|
||||
private Long orderIndex;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setParentNodeId(Long parentNodeId)
|
||||
{
|
||||
this.parentNodeId = parentNodeId;
|
||||
}
|
||||
|
||||
public Long getParentNodeId()
|
||||
{
|
||||
return parentNodeId;
|
||||
}
|
||||
|
||||
public void setChildNodeId(Long childNodeId)
|
||||
{
|
||||
this.childNodeId = childNodeId;
|
||||
}
|
||||
|
||||
public Long getChildNodeId()
|
||||
{
|
||||
return childNodeId;
|
||||
}
|
||||
|
||||
public void setOrderIndex(Long orderIndex)
|
||||
{
|
||||
this.orderIndex = orderIndex;
|
||||
}
|
||||
|
||||
public Long getOrderIndex()
|
||||
{
|
||||
return orderIndex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("parentNodeId", getParentNodeId())
|
||||
.append("childNodeId", getChildNodeId())
|
||||
.append("orderIndex", getOrderIndex())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.solution.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.solution.common.annotation.Excel;
|
||||
import com.solution.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 节点参数对象 nodeparameter
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public class Nodeparameter extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 节点参数ID (主键) */
|
||||
private Long id;
|
||||
|
||||
/** 关联到哪个节点实例 (外键: TreeInstanceNode.id) */
|
||||
@Excel(name = "关联到哪个节点实例 (外键: TreeInstanceNode.id)")
|
||||
private Long nodeInstanceId;
|
||||
|
||||
/** 关联到哪个参数定义 (外键: TemplateParameterDef.id) */
|
||||
@Excel(name = "关联到哪个参数定义 (外键: TemplateParameterDef.id)")
|
||||
private Long paramDefId;
|
||||
|
||||
/** 节点实例设置的具体参数值 (覆盖模板默认值) */
|
||||
@Excel(name = "节点实例设置的具体参数值 (覆盖模板默认值)")
|
||||
private String value;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setNodeInstanceId(Long nodeInstanceId)
|
||||
{
|
||||
this.nodeInstanceId = nodeInstanceId;
|
||||
}
|
||||
|
||||
public Long getNodeInstanceId()
|
||||
{
|
||||
return nodeInstanceId;
|
||||
}
|
||||
|
||||
public void setParamDefId(Long paramDefId)
|
||||
{
|
||||
this.paramDefId = paramDefId;
|
||||
}
|
||||
|
||||
public Long getParamDefId()
|
||||
{
|
||||
return paramDefId;
|
||||
}
|
||||
|
||||
public void setValue(String value)
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("nodeInstanceId", getNodeInstanceId())
|
||||
.append("paramDefId", getParamDefId())
|
||||
.append("value", getValue())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package com.solution.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.solution.common.annotation.Excel;
|
||||
import com.solution.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 节点模板对象 nodetemplate
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public class Nodetemplate extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 节点模板ID (主键) */
|
||||
private Long id;
|
||||
|
||||
/** 节点类型: "Selector", "Sequence", "Action", "Condition", "Decorator" 等 */
|
||||
@Excel(name = "节点类型: "Selector", "Sequence", "Action", "Condition", "Decorator" 等")
|
||||
private String type;
|
||||
|
||||
/** 模板名称, 例如: "MoveToTarget", "IsTargetVisible" */
|
||||
@Excel(name = "模板名称, 例如: "MoveToTarget", "IsTargetVisible"")
|
||||
private String name;
|
||||
|
||||
/** 对应的逻辑执行代码/脚本/函数名 */
|
||||
@Excel(name = "对应的逻辑执行代码/脚本/函数名")
|
||||
private String logicHandler;
|
||||
|
||||
/** 模板描述 */
|
||||
@Excel(name = "模板描述")
|
||||
private String description;
|
||||
|
||||
/** afsim 中转换的节点名 */
|
||||
@Excel(name = "afsim 中转换的节点名")
|
||||
private String englishName;
|
||||
|
||||
/** 模版类型,节点模版或者条件判断,例如“node”,precondition“ */
|
||||
@Excel(name = "模版类型,节点模版或者条件判断,例如“node”,precondition“")
|
||||
private String templeteType;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setLogicHandler(String logicHandler)
|
||||
{
|
||||
this.logicHandler = logicHandler;
|
||||
}
|
||||
|
||||
public String getLogicHandler()
|
||||
{
|
||||
return logicHandler;
|
||||
}
|
||||
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setEnglishName(String englishName)
|
||||
{
|
||||
this.englishName = englishName;
|
||||
}
|
||||
|
||||
public String getEnglishName()
|
||||
{
|
||||
return englishName;
|
||||
}
|
||||
|
||||
public void setTempleteType(String templeteType)
|
||||
{
|
||||
this.templeteType = templeteType;
|
||||
}
|
||||
|
||||
public String getTempleteType()
|
||||
{
|
||||
return templeteType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("type", getType())
|
||||
.append("name", getName())
|
||||
.append("logicHandler", getLogicHandler())
|
||||
.append("description", getDescription())
|
||||
.append("englishName", getEnglishName())
|
||||
.append("templeteType", getTempleteType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package com.solution.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.solution.common.annotation.Excel;
|
||||
import com.solution.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 模板参数定义对象 templateparameterdef
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public class Templateparameterdef extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 参数定义ID (主键) */
|
||||
private Long id;
|
||||
|
||||
/** 关联到哪个节点模板 (外键: NodeTemplate.id) */
|
||||
@Excel(name = "关联到哪个节点模板 (外键: NodeTemplate.id)")
|
||||
private Long templateId;
|
||||
|
||||
/** 参数键名, 例如: "target_name", "speed" */
|
||||
@Excel(name = "参数键名, 例如: "target_name", "speed"")
|
||||
private String paramKey;
|
||||
|
||||
/** 参数数据类型, 例如: "float", "int", "string", "bool" */
|
||||
@Excel(name = "参数数据类型, 例如: "float", "int", "string", "bool"")
|
||||
private String dataType;
|
||||
|
||||
/** 默认值 */
|
||||
@Excel(name = "默认值")
|
||||
private String defaultValue;
|
||||
|
||||
/** 参数描述 */
|
||||
@Excel(name = "参数描述")
|
||||
private String description;
|
||||
|
||||
/** 判断参数模版是节点的参数模版还是条件的参数模版 */
|
||||
@Excel(name = "判断参数模版是节点的参数模版还是条件的参数模版")
|
||||
private String templateType;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setTemplateId(Long templateId)
|
||||
{
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public Long getTemplateId()
|
||||
{
|
||||
return templateId;
|
||||
}
|
||||
|
||||
public void setParamKey(String paramKey)
|
||||
{
|
||||
this.paramKey = paramKey;
|
||||
}
|
||||
|
||||
public String getParamKey()
|
||||
{
|
||||
return paramKey;
|
||||
}
|
||||
|
||||
public void setDataType(String dataType)
|
||||
{
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getDataType()
|
||||
{
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDefaultValue(String defaultValue)
|
||||
{
|
||||
this.defaultValue = defaultValue;
|
||||
}
|
||||
|
||||
public String getDefaultValue()
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setTemplateType(String templateType)
|
||||
{
|
||||
this.templateType = templateType;
|
||||
}
|
||||
|
||||
public String getTemplateType()
|
||||
{
|
||||
return templateType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("templateId", getTemplateId())
|
||||
.append("paramKey", getParamKey())
|
||||
.append("dataType", getDataType())
|
||||
.append("defaultValue", getDefaultValue())
|
||||
.append("description", getDescription())
|
||||
.append("templateType", getTemplateType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
package com.solution.system.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.solution.common.annotation.Excel;
|
||||
import com.solution.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 行为树实例节点对象 treenodeinstance
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public class Treenodeinstance extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 节点实例ID (主键) */
|
||||
private Long id;
|
||||
|
||||
/** 属于哪棵行为树 (外键: BehaviorTree.id) */
|
||||
@Excel(name = "属于哪棵行为树 (外键: BehaviorTree.id)")
|
||||
private Long treeId;
|
||||
|
||||
/** 引用哪个节点模板 (外键: NodeTemplate.id) */
|
||||
@Excel(name = "引用哪个节点模板 (外键: NodeTemplate.id)")
|
||||
private Long templateId;
|
||||
|
||||
/** 节点的显示名称 (可能与模板名称不同, 用于区分实例) */
|
||||
@Excel(name = "节点的显示名称 (可能与模板名称不同, 用于区分实例)")
|
||||
private String instanceName;
|
||||
|
||||
/** 判断当前节点是否为根节点,默认情况下是非根节点 */
|
||||
@Excel(name = "判断当前节点是否为根节点,默认情况下是非根节点")
|
||||
private Long isRoot;
|
||||
|
||||
/** 节点执行的判断条件对应的模版id */
|
||||
@Excel(name = "节点执行的判断条件对应的模版id")
|
||||
private Long preconditionTempleteId;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String uuid;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setTreeId(Long treeId)
|
||||
{
|
||||
this.treeId = treeId;
|
||||
}
|
||||
|
||||
public Long getTreeId()
|
||||
{
|
||||
return treeId;
|
||||
}
|
||||
|
||||
public void setTemplateId(Long templateId)
|
||||
{
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public Long getTemplateId()
|
||||
{
|
||||
return templateId;
|
||||
}
|
||||
|
||||
public void setInstanceName(String instanceName)
|
||||
{
|
||||
this.instanceName = instanceName;
|
||||
}
|
||||
|
||||
public String getInstanceName()
|
||||
{
|
||||
return instanceName;
|
||||
}
|
||||
|
||||
public void setIsRoot(Long isRoot)
|
||||
{
|
||||
this.isRoot = isRoot;
|
||||
}
|
||||
|
||||
public Long getIsRoot()
|
||||
{
|
||||
return isRoot;
|
||||
}
|
||||
|
||||
public void setPreconditionTempleteId(Long preconditionTempleteId)
|
||||
{
|
||||
this.preconditionTempleteId = preconditionTempleteId;
|
||||
}
|
||||
|
||||
public Long getPreconditionTempleteId()
|
||||
{
|
||||
return preconditionTempleteId;
|
||||
}
|
||||
|
||||
public void setUuid(String uuid)
|
||||
{
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
public String getUuid()
|
||||
{
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("treeId", getTreeId())
|
||||
.append("templateId", getTemplateId())
|
||||
.append("instanceName", getInstanceName())
|
||||
.append("isRoot", getIsRoot())
|
||||
.append("preconditionTempleteId", getPreconditionTempleteId())
|
||||
.append("uuid", getUuid())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Behaviortree;
|
||||
|
||||
/**
|
||||
* 行为树主Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface IBehaviortreeService
|
||||
{
|
||||
/**
|
||||
* 查询行为树主
|
||||
*
|
||||
* @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 ids 需要删除的行为树主主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBehaviortreeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除行为树主信息
|
||||
*
|
||||
* @param id 行为树主主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBehaviortreeById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Nodeconnection;
|
||||
|
||||
/**
|
||||
* 节点连接Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface INodeconnectionService
|
||||
{
|
||||
/**
|
||||
* 查询节点连接
|
||||
*
|
||||
* @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 ids 需要删除的节点连接主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeconnectionByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除节点连接信息
|
||||
*
|
||||
* @param id 节点连接主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeconnectionById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Nodeparameter;
|
||||
|
||||
/**
|
||||
* 节点参数Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface INodeparameterService
|
||||
{
|
||||
/**
|
||||
* 查询节点参数
|
||||
*
|
||||
* @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 ids 需要删除的节点参数主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeparameterByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除节点参数信息
|
||||
*
|
||||
* @param id 节点参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodeparameterById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Nodetemplate;
|
||||
|
||||
/**
|
||||
* 节点模板Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface INodetemplateService
|
||||
{
|
||||
/**
|
||||
* 查询节点模板
|
||||
*
|
||||
* @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 ids 需要删除的节点模板主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodetemplateByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除节点模板信息
|
||||
*
|
||||
* @param id 节点模板主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNodetemplateById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Templateparameterdef;
|
||||
|
||||
/**
|
||||
* 模板参数定义Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface ITemplateparameterdefService
|
||||
{
|
||||
/**
|
||||
* 查询模板参数定义
|
||||
*
|
||||
* @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 ids 需要删除的模板参数定义主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTemplateparameterdefByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除模板参数定义信息
|
||||
*
|
||||
* @param id 模板参数定义主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTemplateparameterdefById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.solution.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.solution.system.domain.Treenodeinstance;
|
||||
|
||||
/**
|
||||
* 行为树实例节点Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
public interface ITreenodeinstanceService
|
||||
{
|
||||
/**
|
||||
* 查询行为树实例节点
|
||||
*
|
||||
* @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 ids 需要删除的行为树实例节点主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTreenodeinstanceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除行为树实例节点信息
|
||||
*
|
||||
* @param id 行为树实例节点主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTreenodeinstanceById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.solution.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.solution.system.mapper.BehaviortreeMapper;
|
||||
import com.solution.system.domain.Behaviortree;
|
||||
import com.solution.system.service.IBehaviortreeService;
|
||||
|
||||
/**
|
||||
* 行为树主Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class BehaviortreeServiceImpl implements IBehaviortreeService
|
||||
{
|
||||
@Autowired
|
||||
private BehaviortreeMapper behaviortreeMapper;
|
||||
|
||||
/**
|
||||
* 查询行为树主
|
||||
*
|
||||
* @param id 行为树主主键
|
||||
* @return 行为树主
|
||||
*/
|
||||
@Override
|
||||
public Behaviortree selectBehaviortreeById(Long id)
|
||||
{
|
||||
return behaviortreeMapper.selectBehaviortreeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询行为树主列表
|
||||
*
|
||||
* @param behaviortree 行为树主
|
||||
* @return 行为树主
|
||||
*/
|
||||
@Override
|
||||
public List<Behaviortree> selectBehaviortreeList(Behaviortree behaviortree)
|
||||
{
|
||||
return behaviortreeMapper.selectBehaviortreeList(behaviortree);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增行为树主
|
||||
*
|
||||
* @param behaviortree 行为树主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBehaviortree(Behaviortree behaviortree)
|
||||
{
|
||||
return behaviortreeMapper.insertBehaviortree(behaviortree);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改行为树主
|
||||
*
|
||||
* @param behaviortree 行为树主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBehaviortree(Behaviortree behaviortree)
|
||||
{
|
||||
return behaviortreeMapper.updateBehaviortree(behaviortree);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除行为树主
|
||||
*
|
||||
* @param ids 需要删除的行为树主主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBehaviortreeByIds(Long[] ids)
|
||||
{
|
||||
return behaviortreeMapper.deleteBehaviortreeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除行为树主信息
|
||||
*
|
||||
* @param id 行为树主主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBehaviortreeById(Long id)
|
||||
{
|
||||
return behaviortreeMapper.deleteBehaviortreeById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.solution.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.solution.system.mapper.NodeconnectionMapper;
|
||||
import com.solution.system.domain.Nodeconnection;
|
||||
import com.solution.system.service.INodeconnectionService;
|
||||
|
||||
/**
|
||||
* 节点连接Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class NodeconnectionServiceImpl implements INodeconnectionService
|
||||
{
|
||||
@Autowired
|
||||
private NodeconnectionMapper nodeconnectionMapper;
|
||||
|
||||
/**
|
||||
* 查询节点连接
|
||||
*
|
||||
* @param id 节点连接主键
|
||||
* @return 节点连接
|
||||
*/
|
||||
@Override
|
||||
public Nodeconnection selectNodeconnectionById(Long id)
|
||||
{
|
||||
return nodeconnectionMapper.selectNodeconnectionById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点连接列表
|
||||
*
|
||||
* @param nodeconnection 节点连接
|
||||
* @return 节点连接
|
||||
*/
|
||||
@Override
|
||||
public List<Nodeconnection> selectNodeconnectionList(Nodeconnection nodeconnection)
|
||||
{
|
||||
return nodeconnectionMapper.selectNodeconnectionList(nodeconnection);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增节点连接
|
||||
*
|
||||
* @param nodeconnection 节点连接
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertNodeconnection(Nodeconnection nodeconnection)
|
||||
{
|
||||
return nodeconnectionMapper.insertNodeconnection(nodeconnection);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改节点连接
|
||||
*
|
||||
* @param nodeconnection 节点连接
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateNodeconnection(Nodeconnection nodeconnection)
|
||||
{
|
||||
return nodeconnectionMapper.updateNodeconnection(nodeconnection);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除节点连接
|
||||
*
|
||||
* @param ids 需要删除的节点连接主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteNodeconnectionByIds(Long[] ids)
|
||||
{
|
||||
return nodeconnectionMapper.deleteNodeconnectionByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除节点连接信息
|
||||
*
|
||||
* @param id 节点连接主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteNodeconnectionById(Long id)
|
||||
{
|
||||
return nodeconnectionMapper.deleteNodeconnectionById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.solution.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.solution.system.mapper.NodeparameterMapper;
|
||||
import com.solution.system.domain.Nodeparameter;
|
||||
import com.solution.system.service.INodeparameterService;
|
||||
|
||||
/**
|
||||
* 节点参数Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class NodeparameterServiceImpl implements INodeparameterService
|
||||
{
|
||||
@Autowired
|
||||
private NodeparameterMapper nodeparameterMapper;
|
||||
|
||||
/**
|
||||
* 查询节点参数
|
||||
*
|
||||
* @param id 节点参数主键
|
||||
* @return 节点参数
|
||||
*/
|
||||
@Override
|
||||
public Nodeparameter selectNodeparameterById(Long id)
|
||||
{
|
||||
return nodeparameterMapper.selectNodeparameterById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点参数列表
|
||||
*
|
||||
* @param nodeparameter 节点参数
|
||||
* @return 节点参数
|
||||
*/
|
||||
@Override
|
||||
public List<Nodeparameter> selectNodeparameterList(Nodeparameter nodeparameter)
|
||||
{
|
||||
return nodeparameterMapper.selectNodeparameterList(nodeparameter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增节点参数
|
||||
*
|
||||
* @param nodeparameter 节点参数
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertNodeparameter(Nodeparameter nodeparameter)
|
||||
{
|
||||
return nodeparameterMapper.insertNodeparameter(nodeparameter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改节点参数
|
||||
*
|
||||
* @param nodeparameter 节点参数
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateNodeparameter(Nodeparameter nodeparameter)
|
||||
{
|
||||
return nodeparameterMapper.updateNodeparameter(nodeparameter);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除节点参数
|
||||
*
|
||||
* @param ids 需要删除的节点参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteNodeparameterByIds(Long[] ids)
|
||||
{
|
||||
return nodeparameterMapper.deleteNodeparameterByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除节点参数信息
|
||||
*
|
||||
* @param id 节点参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteNodeparameterById(Long id)
|
||||
{
|
||||
return nodeparameterMapper.deleteNodeparameterById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.solution.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.solution.system.mapper.NodetemplateMapper;
|
||||
import com.solution.system.domain.Nodetemplate;
|
||||
import com.solution.system.service.INodetemplateService;
|
||||
|
||||
/**
|
||||
* 节点模板Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class NodetemplateServiceImpl implements INodetemplateService
|
||||
{
|
||||
@Autowired
|
||||
private NodetemplateMapper nodetemplateMapper;
|
||||
|
||||
/**
|
||||
* 查询节点模板
|
||||
*
|
||||
* @param id 节点模板主键
|
||||
* @return 节点模板
|
||||
*/
|
||||
@Override
|
||||
public Nodetemplate selectNodetemplateById(Long id)
|
||||
{
|
||||
return nodetemplateMapper.selectNodetemplateById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询节点模板列表
|
||||
*
|
||||
* @param nodetemplate 节点模板
|
||||
* @return 节点模板
|
||||
*/
|
||||
@Override
|
||||
public List<Nodetemplate> selectNodetemplateList(Nodetemplate nodetemplate)
|
||||
{
|
||||
return nodetemplateMapper.selectNodetemplateList(nodetemplate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增节点模板
|
||||
*
|
||||
* @param nodetemplate 节点模板
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertNodetemplate(Nodetemplate nodetemplate)
|
||||
{
|
||||
return nodetemplateMapper.insertNodetemplate(nodetemplate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改节点模板
|
||||
*
|
||||
* @param nodetemplate 节点模板
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateNodetemplate(Nodetemplate nodetemplate)
|
||||
{
|
||||
return nodetemplateMapper.updateNodetemplate(nodetemplate);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除节点模板
|
||||
*
|
||||
* @param ids 需要删除的节点模板主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteNodetemplateByIds(Long[] ids)
|
||||
{
|
||||
return nodetemplateMapper.deleteNodetemplateByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除节点模板信息
|
||||
*
|
||||
* @param id 节点模板主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteNodetemplateById(Long id)
|
||||
{
|
||||
return nodetemplateMapper.deleteNodetemplateById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.solution.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.solution.system.mapper.TemplateparameterdefMapper;
|
||||
import com.solution.system.domain.Templateparameterdef;
|
||||
import com.solution.system.service.ITemplateparameterdefService;
|
||||
|
||||
/**
|
||||
* 模板参数定义Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class TemplateparameterdefServiceImpl implements ITemplateparameterdefService
|
||||
{
|
||||
@Autowired
|
||||
private TemplateparameterdefMapper templateparameterdefMapper;
|
||||
|
||||
/**
|
||||
* 查询模板参数定义
|
||||
*
|
||||
* @param id 模板参数定义主键
|
||||
* @return 模板参数定义
|
||||
*/
|
||||
@Override
|
||||
public Templateparameterdef selectTemplateparameterdefById(Long id)
|
||||
{
|
||||
return templateparameterdefMapper.selectTemplateparameterdefById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询模板参数定义列表
|
||||
*
|
||||
* @param templateparameterdef 模板参数定义
|
||||
* @return 模板参数定义
|
||||
*/
|
||||
@Override
|
||||
public List<Templateparameterdef> selectTemplateparameterdefList(Templateparameterdef templateparameterdef)
|
||||
{
|
||||
return templateparameterdefMapper.selectTemplateparameterdefList(templateparameterdef);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增模板参数定义
|
||||
*
|
||||
* @param templateparameterdef 模板参数定义
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTemplateparameterdef(Templateparameterdef templateparameterdef)
|
||||
{
|
||||
return templateparameterdefMapper.insertTemplateparameterdef(templateparameterdef);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改模板参数定义
|
||||
*
|
||||
* @param templateparameterdef 模板参数定义
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTemplateparameterdef(Templateparameterdef templateparameterdef)
|
||||
{
|
||||
return templateparameterdefMapper.updateTemplateparameterdef(templateparameterdef);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除模板参数定义
|
||||
*
|
||||
* @param ids 需要删除的模板参数定义主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTemplateparameterdefByIds(Long[] ids)
|
||||
{
|
||||
return templateparameterdefMapper.deleteTemplateparameterdefByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除模板参数定义信息
|
||||
*
|
||||
* @param id 模板参数定义主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTemplateparameterdefById(Long id)
|
||||
{
|
||||
return templateparameterdefMapper.deleteTemplateparameterdefById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.solution.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.solution.system.mapper.TreenodeinstanceMapper;
|
||||
import com.solution.system.domain.Treenodeinstance;
|
||||
import com.solution.system.service.ITreenodeinstanceService;
|
||||
|
||||
/**
|
||||
* 行为树实例节点Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
public class TreenodeinstanceServiceImpl implements ITreenodeinstanceService
|
||||
{
|
||||
@Autowired
|
||||
private TreenodeinstanceMapper treenodeinstanceMapper;
|
||||
|
||||
/**
|
||||
* 查询行为树实例节点
|
||||
*
|
||||
* @param id 行为树实例节点主键
|
||||
* @return 行为树实例节点
|
||||
*/
|
||||
@Override
|
||||
public Treenodeinstance selectTreenodeinstanceById(Long id)
|
||||
{
|
||||
return treenodeinstanceMapper.selectTreenodeinstanceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询行为树实例节点列表
|
||||
*
|
||||
* @param treenodeinstance 行为树实例节点
|
||||
* @return 行为树实例节点
|
||||
*/
|
||||
@Override
|
||||
public List<Treenodeinstance> selectTreenodeinstanceList(Treenodeinstance treenodeinstance)
|
||||
{
|
||||
return treenodeinstanceMapper.selectTreenodeinstanceList(treenodeinstance);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增行为树实例节点
|
||||
*
|
||||
* @param treenodeinstance 行为树实例节点
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTreenodeinstance(Treenodeinstance treenodeinstance)
|
||||
{
|
||||
return treenodeinstanceMapper.insertTreenodeinstance(treenodeinstance);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改行为树实例节点
|
||||
*
|
||||
* @param treenodeinstance 行为树实例节点
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTreenodeinstance(Treenodeinstance treenodeinstance)
|
||||
{
|
||||
return treenodeinstanceMapper.updateTreenodeinstance(treenodeinstance);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除行为树实例节点
|
||||
*
|
||||
* @param ids 需要删除的行为树实例节点主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTreenodeinstanceByIds(Long[] ids)
|
||||
{
|
||||
return treenodeinstanceMapper.deleteTreenodeinstanceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除行为树实例节点信息
|
||||
*
|
||||
* @param id 行为树实例节点主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTreenodeinstanceById(Long id)
|
||||
{
|
||||
return treenodeinstanceMapper.deleteTreenodeinstanceById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user