2026-03-17 10:49:21 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.solution.scene.mapper.PlatFormCommunicationMapper">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insert" parameterType="com.solution.scene.domain.AfsimScenarioForm">
|
|
|
|
|
INSERT INTO platform_communication (scenary_id, command_platform, subordinate_platform, command_comm, subordinate_comm)
|
|
|
|
|
VALUES
|
|
|
|
|
<foreach collection="afsimScenarios" item="item" separator=",">
|
2026-03-17 11:07:35 +08:00
|
|
|
(#{scenaryId}, #{item.sourcePlatform.name}, #{item.targetPlatform.name}, #{item.sourceComponent.name}, #{item.targetComponent.name})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
<delete id="delete" parameterType="java.lang.Integer">
|
|
|
|
|
DELETE FROM platform_communication
|
|
|
|
|
WHERE scenary_id = #{scenaryId}
|
|
|
|
|
</delete>
|
|
|
|
|
</mapper>
|