select sceneintentid,
               guid,
               orgid,
               sourcetype,
               gbiconfigid,
               sceneid,
               flowid,
               flownodeid,
               flownodebranchid,
               templateid,
               intentionname,
               intentionword,
               conditionstype,
               verifyrule,
               orand,
               parentresultconditionsid,
               groupnumber,
               grouporand,
               del_flag,
               update_by,
               update_time,
               create_by,
               create_time,
               isupload,
               upload_time
        from ivr_scene_intent
    
    
    
    
        insert into ivr_scene_intent
        
            orgid,
            sourcetype,
            gbiconfigid,
            sceneid,
            flowid,
            flownodeid,
            flownodebranchid,
            templateid,
            intentionname,
            intentionword,
            conditionstype,
            verifyrule,
            orand,
            parentresultconditionsid,
            groupnumber,
            grouporand,
            del_flag,
            update_by,
            update_time,
            create_by,
            create_time,
            isupload,
            upload_time,
            guid,
        
        
            #{orgid},
            #{sourcetype},
            #{gbiconfigid},
            #{sceneid},
            #{flowid},
            #{flownodeid},
            #{flownodebranchid},
            #{templateid},
            #{intentionname},
            #{intentionword},
            #{conditionstype},
            #{verifyrule},
            #{orand},
            #{parentresultconditionsid},
            #{groupnumber},
            #{grouporand},
            #{delFlag},
            #{updateBy},
            #{updateTime},
            #{createBy},
            #{createTime},
            #{isupload},
            #{uploadTime},
            #{guid},
        
    
    
        update ivr_scene_intent
        
            orgid = #{orgid},
            sourcetype = #{sourcetype},
            gbiconfigid = #{gbiconfigid},
            sceneid = #{sceneid},
            flowid = #{flowid},
            flownodeid = #{flownodeid},
            flownodebranchid = #{flownodebranchid},
            templateid = #{templateid},
            intentionname = #{intentionname},
            intentionword = #{intentionword},
            conditionstype = #{conditionstype},
            verifyrule = #{verifyrule},
            orand = #{orand},
            parentresultconditionsid = #{parentresultconditionsid},
            groupnumber = #{groupnumber},
            grouporand = #{grouporand},
            del_flag = #{delFlag},
            update_by = #{updateBy},
            update_time = #{updateTime},
            create_by = #{createBy},
            create_time = #{createTime},
            isupload = #{isupload},
            upload_time = #{uploadTime},
            guid = #{guid},
        
        where sceneintentid = #{sceneintentid}
    
    
        delete
        from ivr_scene_intent
        where sceneintentid = #{sceneintentid}
    
    
        delete from ivr_scene_intent where sceneintentid in
        
            #{sceneintentid}