feat(behaviour): 添加行为树模块功能实现
- 添加节点参数的保存、更新和删除操作支持
This commit is contained in:
@@ -38,6 +38,9 @@ public class Treenodeinstance extends BaseEntity
|
||||
@Excel(name = "节点执行的判断条件对应的模版id")
|
||||
private Long preconditionTempleteId;
|
||||
|
||||
@Excel(name = "节点介绍")
|
||||
private String desciption;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String uuid;
|
||||
@@ -112,6 +115,15 @@ public class Treenodeinstance extends BaseEntity
|
||||
return uuid;
|
||||
}
|
||||
|
||||
public String getDesciption() {
|
||||
return desciption;
|
||||
}
|
||||
|
||||
public void setDesciption(String desciption) {
|
||||
this.desciption = desciption;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
@@ -122,6 +134,7 @@ public class Treenodeinstance extends BaseEntity
|
||||
.append("isRoot", getIsRoot())
|
||||
.append("preconditionTempleteId", getPreconditionTempleteId())
|
||||
.append("uuid", getUuid())
|
||||
.append("desciption", getDesciption())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,10 +12,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="isRoot" column="is_root" />
|
||||
<result property="preconditionTempleteId" column="precondition_templete_id" />
|
||||
<result property="uuid" column="uuid" />
|
||||
<result property="desciption" column="desciption" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTreenodeinstanceVo">
|
||||
select id, tree_id, template_id, instance_name, is_root, precondition_templete_id, uuid from treenodeinstance
|
||||
select id, tree_id, template_id, instance_name, is_root, precondition_templete_id, uuid,desciption from treenodeinstance
|
||||
</sql>
|
||||
|
||||
<select id="selectTreenodeinstanceList" parameterType="Treenodeinstance" resultMap="TreenodeinstanceResult">
|
||||
@@ -27,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<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>
|
||||
<if test="desciption != null and desciption != ''"> and desciption = #{desciption}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -44,6 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="isRoot != null">is_root,</if>
|
||||
<if test="preconditionTempleteId != null">precondition_templete_id,</if>
|
||||
<if test="uuid != null">uuid,</if>
|
||||
<if test="desciption != null">desciption,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="treeId != null">#{treeId},</if>
|
||||
@@ -52,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="isRoot != null">#{isRoot},</if>
|
||||
<if test="preconditionTempleteId != null">#{preconditionTempleteId},</if>
|
||||
<if test="uuid != null">#{uuid},</if>
|
||||
<if test="desciption != null">#{desciption},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -64,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="isRoot != null">is_root = #{isRoot},</if>
|
||||
<if test="preconditionTempleteId != null">precondition_templete_id = #{preconditionTempleteId},</if>
|
||||
<if test="uuid != null">uuid = #{uuid},</if>
|
||||
<if test="desciption != null">desciption = #{desciption},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user