逻辑修改
This commit is contained in:
@@ -13,7 +13,7 @@ public interface PlatformMapper {
|
|||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
PlatformTree getPlatformByTreeId(Long id);
|
PlatformTree getPlatformByTreeId(Integer id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据下属平台英文名获取中文名返回
|
* 根据下属平台英文名获取中文名返回
|
||||||
|
|||||||
@@ -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());
|
||||||
//根据下属平台英文名获取中文名返回
|
//根据下属平台英文名获取中文名返回
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user