UPDATE: VERSION-20260327

This commit is contained in:
libertyspy
2026-03-27 10:02:59 +08:00
parent 41ba11dc9b
commit 505092bcf4
4 changed files with 18 additions and 0 deletions

View File

@@ -12,6 +12,9 @@ import com.solution.system.domain.Behaviortree;
*/ */
public interface BehaviortreeMapper public interface BehaviortreeMapper
{ {
Behaviortree findOneByPlatformId(Integer platformId);
/** /**
* 查询行为树主 * 查询行为树主
* *

View File

@@ -12,6 +12,9 @@ import com.solution.system.domain.Behaviortree;
*/ */
public interface IBehaviortreeService public interface IBehaviortreeService
{ {
Behaviortree findOneByPlatformId(Integer platformId);
/** /**
* 查询行为树主 * 查询行为树主
* *

View File

@@ -22,6 +22,12 @@ public class BehaviortreeServiceImpl implements IBehaviortreeService
@Autowired @Autowired
private BehaviortreeMapper behaviortreeMapper; private BehaviortreeMapper behaviortreeMapper;
@Override
public Behaviortree findOneByPlatformId(Integer platformId)
{
return behaviortreeMapper.findOneByPlatformId(platformId);
}
/** /**
* 查询行为树主 * 查询行为树主
* *

View File

@@ -14,6 +14,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="xmlContent" column="xml_content" /> <result property="xmlContent" column="xml_content" />
</resultMap> </resultMap>
<select id="findOneByPlatformId" resultMap="BehaviortreeResult">
select * from behaviortree
where platform_id=#{platformId}
limit 1
</select>
<sql id="selectBehaviortreeVo"> <sql id="selectBehaviortreeVo">
select id, name, description, created_at, updated_at, english_name, xml_content from behaviortree select id, name, description, created_at, updated_at, english_name, xml_content from behaviortree
</sql> </sql>