修改xml 中的sql 解决,报错问题

This commit is contained in:
2026-03-16 11:24:32 +08:00
parent 4ff5bf500c
commit 76022cf09a

View File

@@ -96,14 +96,14 @@
</resultMap>
<select id="findPlatformComponents" resultMap="VPlatformMap"
parameterType="java.lang.Integer">
SELECT
SELECT DISTINCT
p.*,
pc.*
FROM platform p
LEFT JOIN platform_component pc ON p.id = pc.platform_id
WHERE pc.type = "comm"
WHERE pc.type = 'comm'
AND p.scenario_id = #{scenarioId}
GROUP BY p.id;
ORDER BY p.name,pc.name
</select>
</mapper>