实体重复修改

This commit is contained in:
MHW
2026-04-13 16:31:56 +08:00
parent 0e6b6d9f45
commit 766425bae5
4 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ import lombok.Data;
* 平台表
*/
@Data
public class Platform {
public class PlatformTree {
/**
* 主键

View File

@@ -1,6 +1,6 @@
package com.solution.system.mapper;
import com.solution.system.domain.Platform;
import com.solution.system.domain.PlatformTree;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@@ -13,7 +13,7 @@ public interface PlatformMapper {
* @param id
* @return
*/
Platform getPlatformByTreeId(Long id);
PlatformTree getPlatformByTreeId(Long id);
/**
* 根据下属平台英文名获取中文名返回

View File

@@ -5,7 +5,7 @@ import java.util.List;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
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.PlatformMapper;
import org.springframework.beans.factory.annotation.Autowired;
@@ -125,7 +125,7 @@ public class BehaviortreeServiceImpl implements IBehaviortreeService
throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION);
}
//根据行为树id获取行为树所属平台
Platform platform = platformMapper.getPlatformByTreeId(behaviortree.getId());
PlatformTree platform = platformMapper.getPlatformByTreeId(behaviortree.getId());
//根据平台name获取平台下属英文名
List<String> underlingEnglishName = platformCommunicationMapper.getUnderlingBytreeId(platform.getName());
//根据下属平台英文名获取中文名返回

View File

@@ -5,7 +5,7 @@
<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">
SELECT id , name , description, scenario_id
FROM platform