BUG修复:字段映射不上
This commit is contained in:
@@ -106,15 +106,15 @@
|
||||
</resultMap>
|
||||
<select id="findPlatformComponents" resultMap="VPlatformMap"
|
||||
parameterType="java.lang.Integer">
|
||||
<!-- SELECT DISTINCT-->
|
||||
<!-- p.*,-->
|
||||
<!-- pc.*-->
|
||||
<!-- FROM platform p-->
|
||||
<!-- LEFT JOIN platform_component pc ON p.id = pc.platform_id-->
|
||||
<!-- WHERE pc.type = 'comm'-->
|
||||
<!-- AND p.scenario_id = #{scenarioId}-->
|
||||
<!-- ORDER BY p.name,pc.name-->
|
||||
SELECT
|
||||
SELECT DISTINCT
|
||||
p.*,
|
||||
pc.*
|
||||
FROM platform p
|
||||
LEFT JOIN platform_component pc ON p.id = pc.platform_id
|
||||
WHERE pc.type = 'comm'
|
||||
AND p.scenario_id = #{scenarioId}
|
||||
ORDER BY p.name,pc.name
|
||||
<!-- SELECT
|
||||
p.id,
|
||||
p.name,
|
||||
p.description
|
||||
@@ -127,7 +127,6 @@
|
||||
|
||||
<select id="findAllPlatformComponents" resultMap="VPlatformMap">
|
||||
SELECT *
|
||||
FROM platform
|
||||
FROM platform-->
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -31,7 +31,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
FROM behaviortree
|
||||
WHERE scenario_id=#{id}
|
||||
</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">
|
||||
SELECT id,command_platform,subordinate_platform,command_comm,subordinate_comm,scenary_id
|
||||
FROM platform_communication
|
||||
|
||||
Reference in New Issue
Block a user