26-03-15-09:53 火力规则模块:获取通信组件的所有平台和组件 增加返回平台description字段

This commit is contained in:
MHW
2026-03-15 09:54:20 +08:00
parent cc01c9ece8
commit 7847dbc89f
4 changed files with 17 additions and 3 deletions

View File

@@ -13,6 +13,7 @@
<resultMap id="PlatformComponentNamesVOResultMap" type="com.solution.rule.domain.vo.PlatformComponentNamesVO">
<result property="platformName" column="platformName"/>
<result property="platformDescription" column="description"/>
<collection property="componentNames" ofType="java.lang.String">
<result column="componentName"/>
</collection>
@@ -55,10 +56,11 @@
parameterType="java.lang.Integer">
SELECT
p.name AS platformName,
pc.name AS componentName
pc.name AS componentName,
p.description AS description
FROM platform p
INNER JOIN platform_component pc ON p.id = pc.platform_id
WHERE pc.type = "comm"
WHERE pc.type = 'comm'
AND p.scenario_id = #{scenarioId}
</select>
<select id="getComponents" resultType="com.solution.rule.domain.PlatformComponent"