根据平台id获取该行为树的下属
This commit is contained in:
@@ -5,12 +5,7 @@
|
||||
<mapper namespace="com.solution.system.mapper.PlatformMapper">
|
||||
|
||||
|
||||
<select id="getPlatformByTreeId" resultType="com.solution.system.domain.PlatformTree"
|
||||
parameterType="java.lang.Integer">
|
||||
SELECT id , name , description, scenario_id
|
||||
FROM platform
|
||||
WHERE id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectPlatformChineseName" resultType="java.lang.String"
|
||||
parameterType="java.util.List">
|
||||
SELECT description
|
||||
@@ -20,4 +15,23 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
<select id="getPlatformById" resultType="com.solution.system.domain.PlatformTree"
|
||||
parameterType="java.lang.Integer">
|
||||
SELECT id, name, description, scenario_id AS scenarioId
|
||||
FROM platform
|
||||
WHERE id = #{platformId}
|
||||
</select>
|
||||
<select id="getPlatformByEnglishName" resultType="com.solution.system.domain.PlatformVO"
|
||||
parameterType="java.util.List<java.lang.String>">
|
||||
SELECT id,name,description,
|
||||
scenario_id AS scenarioId,
|
||||
longitude,latitude,
|
||||
platform_type AS platformType,
|
||||
altitude
|
||||
FROM platform
|
||||
WHERE name IN
|
||||
<foreach item="item" collection="underlingEnglishName" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user