逻辑修改

This commit is contained in:
MHW
2026-04-13 17:13:34 +08:00
parent 5f1ba38c6b
commit aefc2c688e
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ public interface PlatformMapper {
* @param id * @param id
* @return * @return
*/ */
PlatformTree getPlatformByTreeId(Long id); PlatformTree getPlatformByTreeId(Integer id);
/** /**
* 根据下属平台英文名获取中文名返回 * 根据下属平台英文名获取中文名返回

View File

@@ -125,7 +125,7 @@ public class BehaviortreeServiceImpl implements IBehaviortreeService
throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION); throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION);
} }
//根据行为树id获取行为树所属平台 //根据行为树id获取行为树所属平台
PlatformTree platform = platformMapper.getPlatformByTreeId(behaviortree.getId()); PlatformTree platform = platformMapper.getPlatformByTreeId(behaviortree.getPlatformId());
//根据平台name获取平台下属英文名 //根据平台name获取平台下属英文名
List<String> underlingEnglishName = platformCommunicationMapper.getUnderlingBytreeId(platform.getName()); List<String> underlingEnglishName = platformCommunicationMapper.getUnderlingBytreeId(platform.getName());
//根据下属平台英文名获取中文名返回 //根据下属平台英文名获取中文名返回

View File

@@ -6,7 +6,7 @@
<select id="getPlatformByTreeId" resultType="com.solution.system.domain.PlatformTree" <select id="getPlatformByTreeId" resultType="com.solution.system.domain.PlatformTree"
parameterType="java.lang.Long"> parameterType="java.lang.Integer">
SELECT id , name , description, scenario_id SELECT id , name , description, scenario_id
FROM platform FROM platform
WHERE id = #{id} WHERE id = #{id}