BUG修复:字段映射不上

This commit is contained in:
MHW
2026-04-14 17:00:49 +08:00
parent 178bceabbb
commit 3ae6a693e1
2 changed files with 27 additions and 19 deletions

View File

@@ -106,15 +106,15 @@
</resultMap> </resultMap>
<select id="findPlatformComponents" resultMap="VPlatformMap" <select id="findPlatformComponents" resultMap="VPlatformMap"
parameterType="java.lang.Integer"> parameterType="java.lang.Integer">
<!-- SELECT DISTINCT--> SELECT DISTINCT
<!-- p.*,--> p.*,
<!-- pc.*--> pc.*
<!-- FROM platform p--> FROM platform p
<!-- LEFT JOIN platform_component pc ON p.id = pc.platform_id--> LEFT JOIN platform_component pc ON p.id = pc.platform_id
<!-- WHERE pc.type = 'comm'--> WHERE pc.type = 'comm'
<!-- AND p.scenario_id = #{scenarioId}--> AND p.scenario_id = #{scenarioId}
<!-- ORDER BY p.name,pc.name--> ORDER BY p.name,pc.name
SELECT <!-- SELECT
p.id, p.id,
p.name, p.name,
p.description p.description
@@ -127,7 +127,6 @@
<select id="findAllPlatformComponents" resultMap="VPlatformMap"> <select id="findAllPlatformComponents" resultMap="VPlatformMap">
SELECT * SELECT *
FROM platform FROM platform-->
</select> </select>
</mapper>
</mapper>

View File

@@ -31,7 +31,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM behaviortree FROM behaviortree
WHERE scenario_id=#{id} WHERE scenario_id=#{id}
</select> </select>
<select id="selectAllRelationBySceneId" resultType="com.solution.scene.domain.PlatformCommunication"
<resultMap id="PlatformCommunicationResultMap" type="com.solution.scene.domain.PlatformCommunication">
<id property="id" column="id"/>
<result property="commandPlatform" column="command_platform"/>
<result property="subordinatePlatform" column="subordinate_platform"/>
<result property="commandComm" column="command_comm"/>
<result property="subordinateComm" column="subordinate_comm"/>
<result property="scenaryId" column="scenary_id"/>
</resultMap>
<select id="selectAllRelationBySceneId" resultMap="PlatformCommunicationResultMap"
parameterType="java.lang.Integer"> parameterType="java.lang.Integer">
SELECT id,command_platform,subordinate_platform,command_comm,subordinate_comm,scenary_id SELECT id,command_platform,subordinate_platform,command_comm,subordinate_comm,scenary_id
FROM platform_communication FROM platform_communication