feat(behaviour): 添加行为树系统核心功能模块
- 创建行为树主对象实体类Behaviortree,包含ID、名称、描述、创建时间、更新时间、英文名和XML内容字段 - 实现行为树控制器BehaviortreeController,提供增删改查和导出功能接口 - 开发行为树数据访问层,包括Mapper接口和MyBatis XML映射文件 - 构建行为树服务层接口及实现类,封装业务逻辑处理 - 添加节点连接、节点参数、节点模板、模板参数定义和行为树实例节点等相关实体和服务接口 - 实现节点连接管理功能,支持父子节点关系建立和执行顺序配置 - 提供完整的CRUD操作和权限控制,集成Excel导出功能
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.solution.system.mapper.BehaviortreeMapper">
|
||||
|
||||
<resultMap type="Behaviortree" id="BehaviortreeResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="description" column="description" />
|
||||
<result property="createdAt" column="created_at" />
|
||||
<result property="updatedAt" column="updated_at" />
|
||||
<result property="englishName" column="english_name" />
|
||||
<result property="xmlContent" column="xml_content" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBehaviortreeVo">
|
||||
select id, name, description, created_at, updated_at, english_name, xml_content from behaviortree
|
||||
</sql>
|
||||
|
||||
<select id="selectBehaviortreeList" parameterType="Behaviortree" resultMap="BehaviortreeResult">
|
||||
<include refid="selectBehaviortreeVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="createdAt != null "> and created_at = #{createdAt}</if>
|
||||
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
|
||||
<if test="englishName != null and englishName != ''"> and english_name like concat('%', #{englishName}, '%')</if>
|
||||
<if test="xmlContent != null and xmlContent != ''"> and xml_content = #{xmlContent}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBehaviortreeById" parameterType="Long" resultMap="BehaviortreeResult">
|
||||
<include refid="selectBehaviortreeVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBehaviortree" parameterType="Behaviortree" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into behaviortree
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="createdAt != null">created_at,</if>
|
||||
<if test="updatedAt != null">updated_at,</if>
|
||||
<if test="englishName != null and englishName != ''">english_name,</if>
|
||||
<if test="xmlContent != null">xml_content,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="createdAt != null">#{createdAt},</if>
|
||||
<if test="updatedAt != null">#{updatedAt},</if>
|
||||
<if test="englishName != null and englishName != ''">#{englishName},</if>
|
||||
<if test="xmlContent != null">#{xmlContent},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBehaviortree" parameterType="Behaviortree">
|
||||
update behaviortree
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="createdAt != null">created_at = #{createdAt},</if>
|
||||
<if test="updatedAt != null">updated_at = #{updatedAt},</if>
|
||||
<if test="englishName != null and englishName != ''">english_name = #{englishName},</if>
|
||||
<if test="xmlContent != null">xml_content = #{xmlContent},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBehaviortreeById" parameterType="Long">
|
||||
delete from behaviortree where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBehaviortreeByIds" parameterType="String">
|
||||
delete from behaviortree where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.solution.system.mapper.NodeconnectionMapper">
|
||||
|
||||
<resultMap type="Nodeconnection" id="NodeconnectionResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="parentNodeId" column="parent_node_id" />
|
||||
<result property="childNodeId" column="child_node_id" />
|
||||
<result property="orderIndex" column="order_index" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectNodeconnectionVo">
|
||||
select id, parent_node_id, child_node_id, order_index from nodeconnection
|
||||
</sql>
|
||||
|
||||
<select id="selectNodeconnectionList" parameterType="Nodeconnection" resultMap="NodeconnectionResult">
|
||||
<include refid="selectNodeconnectionVo"/>
|
||||
<where>
|
||||
<if test="parentNodeId != null "> and parent_node_id = #{parentNodeId}</if>
|
||||
<if test="childNodeId != null "> and child_node_id = #{childNodeId}</if>
|
||||
<if test="orderIndex != null "> and order_index = #{orderIndex}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectNodeconnectionById" parameterType="Long" resultMap="NodeconnectionResult">
|
||||
<include refid="selectNodeconnectionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertNodeconnection" parameterType="Nodeconnection" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into nodeconnection
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="parentNodeId != null">parent_node_id,</if>
|
||||
<if test="childNodeId != null">child_node_id,</if>
|
||||
<if test="orderIndex != null">order_index,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="parentNodeId != null">#{parentNodeId},</if>
|
||||
<if test="childNodeId != null">#{childNodeId},</if>
|
||||
<if test="orderIndex != null">#{orderIndex},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateNodeconnection" parameterType="Nodeconnection">
|
||||
update nodeconnection
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="parentNodeId != null">parent_node_id = #{parentNodeId},</if>
|
||||
<if test="childNodeId != null">child_node_id = #{childNodeId},</if>
|
||||
<if test="orderIndex != null">order_index = #{orderIndex},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteNodeconnectionById" parameterType="Long">
|
||||
delete from nodeconnection where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteNodeconnectionByIds" parameterType="String">
|
||||
delete from nodeconnection where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.solution.system.mapper.NodeparameterMapper">
|
||||
|
||||
<resultMap type="Nodeparameter" id="NodeparameterResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="nodeInstanceId" column="node_instance_id" />
|
||||
<result property="paramDefId" column="param_def_id" />
|
||||
<result property="value" column="value" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectNodeparameterVo">
|
||||
select id, node_instance_id, param_def_id, value from nodeparameter
|
||||
</sql>
|
||||
|
||||
<select id="selectNodeparameterList" parameterType="Nodeparameter" resultMap="NodeparameterResult">
|
||||
<include refid="selectNodeparameterVo"/>
|
||||
<where>
|
||||
<if test="nodeInstanceId != null "> and node_instance_id = #{nodeInstanceId}</if>
|
||||
<if test="paramDefId != null "> and param_def_id = #{paramDefId}</if>
|
||||
<if test="value != null and value != ''"> and value = #{value}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectNodeparameterById" parameterType="Long" resultMap="NodeparameterResult">
|
||||
<include refid="selectNodeparameterVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertNodeparameter" parameterType="Nodeparameter" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into nodeparameter
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="nodeInstanceId != null">node_instance_id,</if>
|
||||
<if test="paramDefId != null">param_def_id,</if>
|
||||
<if test="value != null">value,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="nodeInstanceId != null">#{nodeInstanceId},</if>
|
||||
<if test="paramDefId != null">#{paramDefId},</if>
|
||||
<if test="value != null">#{value},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateNodeparameter" parameterType="Nodeparameter">
|
||||
update nodeparameter
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="nodeInstanceId != null">node_instance_id = #{nodeInstanceId},</if>
|
||||
<if test="paramDefId != null">param_def_id = #{paramDefId},</if>
|
||||
<if test="value != null">value = #{value},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteNodeparameterById" parameterType="Long">
|
||||
delete from nodeparameter where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteNodeparameterByIds" parameterType="String">
|
||||
delete from nodeparameter where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.solution.system.mapper.NodetemplateMapper">
|
||||
|
||||
<resultMap type="Nodetemplate" id="NodetemplateResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="type" column="type" />
|
||||
<result property="name" column="name" />
|
||||
<result property="logicHandler" column="logic_handler" />
|
||||
<result property="description" column="description" />
|
||||
<result property="englishName" column="english_name" />
|
||||
<result property="templeteType" column="templete_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectNodetemplateVo">
|
||||
select id, type, name, logic_handler, description, english_name, templete_type from nodetemplate
|
||||
</sql>
|
||||
|
||||
<select id="selectNodetemplateList" parameterType="Nodetemplate" resultMap="NodetemplateResult">
|
||||
<include refid="selectNodetemplateVo"/>
|
||||
<where>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="logicHandler != null and logicHandler != ''"> and logic_handler = #{logicHandler}</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="englishName != null and englishName != ''"> and english_name like concat('%', #{englishName}, '%')</if>
|
||||
<if test="templeteType != null and templeteType != ''"> and templete_type = #{templeteType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectNodetemplateById" parameterType="Long" resultMap="NodetemplateResult">
|
||||
<include refid="selectNodetemplateVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertNodetemplate" parameterType="Nodetemplate" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into nodetemplate
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="type != null and type != ''">type,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="logicHandler != null">logic_handler,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="englishName != null">english_name,</if>
|
||||
<if test="templeteType != null and templeteType != ''">templete_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="type != null and type != ''">#{type},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="logicHandler != null">#{logicHandler},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="englishName != null">#{englishName},</if>
|
||||
<if test="templeteType != null and templeteType != ''">#{templeteType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateNodetemplate" parameterType="Nodetemplate">
|
||||
update nodetemplate
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="type != null and type != ''">type = #{type},</if>
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="logicHandler != null">logic_handler = #{logicHandler},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="englishName != null">english_name = #{englishName},</if>
|
||||
<if test="templeteType != null and templeteType != ''">templete_type = #{templeteType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteNodetemplateById" parameterType="Long">
|
||||
delete from nodetemplate where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteNodetemplateByIds" parameterType="String">
|
||||
delete from nodetemplate where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.solution.system.mapper.TemplateparameterdefMapper">
|
||||
|
||||
<resultMap type="Templateparameterdef" id="TemplateparameterdefResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="templateId" column="template_id" />
|
||||
<result property="paramKey" column="param_key" />
|
||||
<result property="dataType" column="data_type" />
|
||||
<result property="defaultValue" column="default_value" />
|
||||
<result property="description" column="description" />
|
||||
<result property="templateType" column="template_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTemplateparameterdefVo">
|
||||
select id, template_id, param_key, data_type, default_value, description, template_type from templateparameterdef
|
||||
</sql>
|
||||
|
||||
<select id="selectTemplateparameterdefList" parameterType="Templateparameterdef" resultMap="TemplateparameterdefResult">
|
||||
<include refid="selectTemplateparameterdefVo"/>
|
||||
<where>
|
||||
<if test="templateId != null "> and template_id = #{templateId}</if>
|
||||
<if test="paramKey != null and paramKey != ''"> and param_key = #{paramKey}</if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if>
|
||||
<if test="defaultValue != null and defaultValue != ''"> and default_value = #{defaultValue}</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="templateType != null and templateType != ''"> and template_type = #{templateType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTemplateparameterdefById" parameterType="Long" resultMap="TemplateparameterdefResult">
|
||||
<include refid="selectTemplateparameterdefVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTemplateparameterdef" parameterType="Templateparameterdef" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into templateparameterdef
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="templateId != null">template_id,</if>
|
||||
<if test="paramKey != null and paramKey != ''">param_key,</if>
|
||||
<if test="dataType != null and dataType != ''">data_type,</if>
|
||||
<if test="defaultValue != null and defaultValue != ''">default_value,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="templateType != null and templateType != ''">template_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="templateId != null">#{templateId},</if>
|
||||
<if test="paramKey != null and paramKey != ''">#{paramKey},</if>
|
||||
<if test="dataType != null and dataType != ''">#{dataType},</if>
|
||||
<if test="defaultValue != null and defaultValue != ''">#{defaultValue},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="templateType != null and templateType != ''">#{templateType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTemplateparameterdef" parameterType="Templateparameterdef">
|
||||
update templateparameterdef
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="templateId != null">template_id = #{templateId},</if>
|
||||
<if test="paramKey != null and paramKey != ''">param_key = #{paramKey},</if>
|
||||
<if test="dataType != null and dataType != ''">data_type = #{dataType},</if>
|
||||
<if test="defaultValue != null and defaultValue != ''">default_value = #{defaultValue},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="templateType != null and templateType != ''">template_type = #{templateType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTemplateparameterdefById" parameterType="Long">
|
||||
delete from templateparameterdef where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTemplateparameterdefByIds" parameterType="String">
|
||||
delete from templateparameterdef where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.solution.system.mapper.TreenodeinstanceMapper">
|
||||
|
||||
<resultMap type="Treenodeinstance" id="TreenodeinstanceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="treeId" column="tree_id" />
|
||||
<result property="templateId" column="template_id" />
|
||||
<result property="instanceName" column="instance_name" />
|
||||
<result property="isRoot" column="is_root" />
|
||||
<result property="preconditionTempleteId" column="precondition_templete_id" />
|
||||
<result property="uuid" column="uuid" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTreenodeinstanceVo">
|
||||
select id, tree_id, template_id, instance_name, is_root, precondition_templete_id, uuid from treenodeinstance
|
||||
</sql>
|
||||
|
||||
<select id="selectTreenodeinstanceList" parameterType="Treenodeinstance" resultMap="TreenodeinstanceResult">
|
||||
<include refid="selectTreenodeinstanceVo"/>
|
||||
<where>
|
||||
<if test="treeId != null "> and tree_id = #{treeId}</if>
|
||||
<if test="templateId != null "> and template_id = #{templateId}</if>
|
||||
<if test="instanceName != null and instanceName != ''"> and instance_name like concat('%', #{instanceName}, '%')</if>
|
||||
<if test="isRoot != null "> and is_root = #{isRoot}</if>
|
||||
<if test="preconditionTempleteId != null "> and precondition_templete_id = #{preconditionTempleteId}</if>
|
||||
<if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTreenodeinstanceById" parameterType="Long" resultMap="TreenodeinstanceResult">
|
||||
<include refid="selectTreenodeinstanceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTreenodeinstance" parameterType="Treenodeinstance" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into treenodeinstance
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="treeId != null">tree_id,</if>
|
||||
<if test="templateId != null">template_id,</if>
|
||||
<if test="instanceName != null">instance_name,</if>
|
||||
<if test="isRoot != null">is_root,</if>
|
||||
<if test="preconditionTempleteId != null">precondition_templete_id,</if>
|
||||
<if test="uuid != null">uuid,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="treeId != null">#{treeId},</if>
|
||||
<if test="templateId != null">#{templateId},</if>
|
||||
<if test="instanceName != null">#{instanceName},</if>
|
||||
<if test="isRoot != null">#{isRoot},</if>
|
||||
<if test="preconditionTempleteId != null">#{preconditionTempleteId},</if>
|
||||
<if test="uuid != null">#{uuid},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTreenodeinstance" parameterType="Treenodeinstance">
|
||||
update treenodeinstance
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="treeId != null">tree_id = #{treeId},</if>
|
||||
<if test="templateId != null">template_id = #{templateId},</if>
|
||||
<if test="instanceName != null">instance_name = #{instanceName},</if>
|
||||
<if test="isRoot != null">is_root = #{isRoot},</if>
|
||||
<if test="preconditionTempleteId != null">precondition_templete_id = #{preconditionTempleteId},</if>
|
||||
<if test="uuid != null">uuid = #{uuid},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTreenodeinstanceById" parameterType="Long">
|
||||
delete from treenodeinstance where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTreenodeinstanceByIds" parameterType="String">
|
||||
delete from treenodeinstance where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user