diff --git a/auto-solution-scene/src/main/resources/mapper/scene/PlatFormCommunicationMapper.xml b/auto-solution-scene/src/main/resources/mapper/scene/PlatFormCommunicationMapper.xml index 1be0f29..d745257 100644 --- a/auto-solution-scene/src/main/resources/mapper/scene/PlatFormCommunicationMapper.xml +++ b/auto-solution-scene/src/main/resources/mapper/scene/PlatFormCommunicationMapper.xml @@ -9,12 +9,11 @@ INSERT INTO platform_communication (scenary_id, command_platform, subordinate_platform, command_comm, subordinate_comm) VALUES - (#{scenaryId}, #{item.sourcePlatform}, #{item.targetPlatform}, #{item.sourceComponent}, #{item.targetComponent}) - - - - - DELETE FROM platform_communication - WHERE scenary_id = #{scenaryId} - - \ No newline at end of file + (#{scenaryId}, #{item.sourcePlatform.name}, #{item.targetPlatform.name}, #{item.sourceComponent.name}, #{item.targetComponent.name}) + + + + DELETE FROM platform_communication + WHERE scenary_id = #{scenaryId} + + \ No newline at end of file