实体重复修改
This commit is contained in:
@@ -7,7 +7,7 @@ import lombok.Data;
|
|||||||
* 平台表
|
* 平台表
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class Platform {
|
public class PlatformTree {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键
|
* 主键
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package com.solution.system.mapper;
|
package com.solution.system.mapper;
|
||||||
|
|
||||||
import com.solution.system.domain.Platform;
|
import com.solution.system.domain.PlatformTree;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -13,7 +13,7 @@ public interface PlatformMapper {
|
|||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Platform getPlatformByTreeId(Long id);
|
PlatformTree getPlatformByTreeId(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据下属平台英文名获取中文名返回
|
* 根据下属平台英文名获取中文名返回
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import java.util.List;
|
|||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.solution.common.constant.ExceptionConstants;
|
import com.solution.common.constant.ExceptionConstants;
|
||||||
import com.solution.system.domain.Platform;
|
import com.solution.system.domain.PlatformTree;
|
||||||
import com.solution.system.mapper.PlatformCommunicationMapper;
|
import com.solution.system.mapper.PlatformCommunicationMapper;
|
||||||
import com.solution.system.mapper.PlatformMapper;
|
import com.solution.system.mapper.PlatformMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -125,7 +125,7 @@ public class BehaviortreeServiceImpl implements IBehaviortreeService
|
|||||||
throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION);
|
throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION);
|
||||||
}
|
}
|
||||||
//根据行为树id获取行为树所属平台
|
//根据行为树id获取行为树所属平台
|
||||||
Platform platform = platformMapper.getPlatformByTreeId(behaviortree.getId());
|
PlatformTree platform = platformMapper.getPlatformByTreeId(behaviortree.getId());
|
||||||
//根据平台name获取平台下属英文名
|
//根据平台name获取平台下属英文名
|
||||||
List<String> underlingEnglishName = platformCommunicationMapper.getUnderlingBytreeId(platform.getName());
|
List<String> underlingEnglishName = platformCommunicationMapper.getUnderlingBytreeId(platform.getName());
|
||||||
//根据下属平台英文名获取中文名返回
|
//根据下属平台英文名获取中文名返回
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<mapper namespace="com.solution.system.mapper.PlatformMapper">
|
<mapper namespace="com.solution.system.mapper.PlatformMapper">
|
||||||
|
|
||||||
|
|
||||||
<select id="getPlatformByTreeId" resultType="com.solution.system.domain.Platform"
|
<select id="getPlatformByTreeId" resultType="com.solution.system.domain.PlatformTree"
|
||||||
parameterType="java.lang.Long">
|
parameterType="java.lang.Long">
|
||||||
SELECT id , name , description, scenario_id
|
SELECT id , name , description, scenario_id
|
||||||
FROM platform
|
FROM platform
|
||||||
|
|||||||
Reference in New Issue
Block a user