行为树:新增行为树添加平台id

This commit is contained in:
MHW
2026-03-31 15:39:58 +08:00
parent e52aaa1680
commit eb57d2d228
2 changed files with 24 additions and 10 deletions

View File

@@ -46,6 +46,17 @@ public class Behaviortree extends BaseEntity
@Excel(name = "储存行为树的节点关系图") @Excel(name = "储存行为树的节点关系图")
private String xmlContent; private String xmlContent;
@Excel(name = "平台ID")
private Integer platformId;
public Integer getPlatformId() {
return platformId;
}
public void setPlatformId(Integer platformId) {
this.platformId = platformId;
}
public void setId(Long id) public void setId(Long id)
{ {
this.id = id; this.id = id;
@@ -118,14 +129,15 @@ public class Behaviortree extends BaseEntity
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return "Behaviortree{" +
.append("id", getId()) "id=" + id +
.append("name", getName()) ", name='" + name + '\'' +
.append("description", getDescription()) ", description='" + description + '\'' +
.append("createdAt", getCreatedAt()) ", createdAt=" + createdAt +
.append("updatedAt", getUpdatedAt()) ", updatedAt=" + updatedAt +
.append("englishName", getEnglishName()) ", englishName='" + englishName + '\'' +
.append("xmlContent", getXmlContent()) ", xmlContent='" + xmlContent + '\'' +
.toString(); ", platformId=" + platformId +
'}';
} }
} }

View File

@@ -44,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updatedAt != null">updated_at,</if> <if test="updatedAt != null">updated_at,</if>
<if test="englishName != null and englishName != ''">english_name,</if> <if test="englishName != null and englishName != ''">english_name,</if>
<if test="xmlContent != null">xml_content,</if> <if test="xmlContent != null">xml_content,</if>
<if test="platformId != null">platform_id,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">#{name},</if> <if test="name != null and name != ''">#{name},</if>
@@ -52,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updatedAt != null">#{updatedAt},</if> <if test="updatedAt != null">#{updatedAt},</if>
<if test="englishName != null and englishName != ''">#{englishName},</if> <if test="englishName != null and englishName != ''">#{englishName},</if>
<if test="xmlContent != null">#{xmlContent},</if> <if test="xmlContent != null">#{xmlContent},</if>
<if test="platformId != null">#{platformId},</if>
</trim> </trim>
</insert> </insert>