select user_id, user_name, scene_id,product_id,product_name,script_event,script_action,script_purpose,script_order,application_name, script_id, script_name, script_data, script_type, script_language,enable, del_flag, create_by, create_time, update_by, update_time, remark from iot_script select user_id, user_name, scene_id,product_id,product_name, script_event,script_action,script_purpose,script_order,application_name, script_id, script_name, script_type, script_language,enable, create_by, create_time, update_by, update_time from iot_script insert into iot_script user_id, user_name, scene_id, script_event, script_action, script_purpose, script_order, application_name, script_id, script_name, script_data, script_type, script_language, enable, del_flag, create_by, create_time, update_by, update_time, remark, product_id, product_name, #{userId}, #{userName}, #{sceneId}, #{scriptEvent}, #{scriptAction}, #{scriptPurpose}, #{scriptOrder}, #{applicationName}, #{scriptId}, #{scriptName}, #{scriptData}, #{scriptType}, #{scriptLanguage}, #{enable}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{productId}, #{productName}, update iot_script user_id = #{userId}, user_name = #{userName}, scene_id = #{sceneId}, script_event = #{scriptEvent}, script_action = #{scriptAction}, script_purpose = #{scriptPurpose}, script_order = #{scriptOrder}, application_name = #{applicationName}, script_id = #{scriptId}, script_name = #{scriptName}, script_data = #{scriptData}, script_type = #{scriptType}, script_language = #{scriptLanguage}, enable = #{enable}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, product_id = #{productId}, product_name = #{productName}, where script_id = #{scriptId} delete from iot_script where script_id = #{scriptId} delete from iot_script where script_id in #{scriptId} insert into iot_script (user_id,user_name,scene_id,script_event, script_action, script_purpose,script_order, application_name,script_id,script_name,script_data,script_type,script_language,enable,create_by,create_time,product_id,product_name) VALUES (#{ruleScript.userId}, #{ruleScript.userName}, #{ruleScript.sceneId}, #{ruleScript.scriptEvent}, #{ruleScript.scriptAction}, #{ruleScript.scriptPurpose}, #{ruleScript.scriptOrder}, #{ruleScript.applicationName}, #{ruleScript.scriptId}, #{ruleScript.scriptName}, #{ruleScript.scriptData}, #{ruleScript.scriptType}, #{ruleScript.scriptLanguage}, #{ruleScript.enable}, #{ruleScript.createBy}, #{ruleScript.createTime}, #{ruleScript.productId}, #{ruleScript.productName}) delete from iot_script where scene_id in #{sceneId} insert into iot_script_bridge script_id, bridge_id, #{scriptId}, #{bridgeId}, update iot_script_bridge bridge_id = #{bridgeId}, where script_id = #{scriptId} delete from iot_script_bridge where script_id = #{scriptId}