insert into psdc_scene(scene_name,scene_code,user_id,device_id,device_sn,scene_context,scene_key,scene_value)
values (#{sceneName},#{sceneCode},#{userId},#{deviceId},#{deviceSn},#{sceneContext},#{sceneKey},#{sceneValue})
Insert into psdc_scene(scene_name,scene_code,user_id,device_id,device_sn,scene_context,scene_key,scene_value)
Values
(#{entity.sceneName}, #{entity.sceneCode},#{entity.userId}, #{entity.deviceId}, #{entity.deviceSn}, #{entity.sceneContext}, #{entity.sceneKey}, #{entity.sceneValue})
Update psdc_scene
`scene_name`= #{item.sceneName},
`device_sn` = #{item.deviceSn},
`scene_context` = #{item.sceneContext},
`scene_key` = ${item.sceneKey},
`scene_value` = ${item.sceneValue}
`scene_id` = ${item.sceneId}
update psdc_scene
scene_name = #{sceneName},
scene_code = #{sceneCode},
user_id = #{userId},
device_id = #{deviceId},
device_sn = #{deviceSn},
scene_context = #{sceneContext},
scene_key = #{sceneKey},
scene_value = #{sceneValue},
where scene_id = #{sceneId}
delete from psdc_scene where scene_id = #{sceneId}
Delete From psdc_scene Where scene_name = #{sceneName}