select uuid,
               displayno,
               phone,
               taskid,
               guid,
               extension,
               inbound,
               direct,
               answered,
               assign_time,
               start_time,
               answer_time,
               hangup_time,
               end_time,
               record_path,
               record_url,
               hangup_sipcode,
               hangup_cause,
               transfered,
               trans_uuid,
               trans_phone,
               trans_answered,
               trans_start_time,
               trans_answer_time,
               early_asrtext,
               early_path,
               early_url,
               del_flag,
               update_by,
               update_time,
               create_by,
               create_time,
               isupload,
               upload_time,
               orgid
        from ivr_taskcallrecord
    
    
    
    
        insert into ivr_taskcallrecord
        
            uuid,
            displayno,
            phone,
            taskid,
            extension,
            inbound,
            direct,
            answered,
            assign_time,
            start_time,
            answer_time,
            hangup_time,
            end_time,
            record_path,
            record_url,
            hangup_sipcode,
            hangup_cause,
            transfered,
            trans_uuid,
            trans_phone,
            trans_answered,
            trans_start_time,
            trans_answer_time,
            early_asrtext,
            early_path,
            early_url,
            del_flag,
            update_by,
            update_time,
            create_by,
            create_time,
            isupload,
            upload_time,
            orgid,
            guid,
        
        
            #{uuid},
            #{displayno},
            #{phone},
            #{taskid},
            #{extension},
            #{inbound},
            #{direct},
            #{answered},
            #{assignTime},
            #{startTime},
            #{answerTime},
            #{hangupTime},
            #{endTime},
            #{recordPath},
            #{recordUrl},
            #{hangupSipcode},
            #{hangupCause},
            #{transfered},
            #{transUuid},
            #{transPhone},
            #{transAnswered},
            #{transStartTime},
            #{transAnswerTime},
            #{earlyAsrtext},
            #{earlyPath},
            #{earlyUrl},
            #{delFlag},
            #{updateBy},
            #{updateTime},
            #{createBy},
            #{createTime},
            #{isupload},
            #{uploadTime},
            #{orgid},
            #{guid},
        
    
    
        update ivr_taskcallrecord
        
            displayno = #{displayno},
            phone = #{phone},
            taskid = #{taskid},
            extension = #{extension},
            inbound = #{inbound},
            direct = #{direct},
            answered = #{answered},
            assign_time = #{assignTime},
            start_time = #{startTime},
            answer_time = #{answerTime},
            hangup_time = #{hangupTime},
            end_time = #{endTime},
            record_path = #{recordPath},
            record_url = #{recordUrl},
            hangup_sipcode = #{hangupSipcode},
            hangup_cause = #{hangupCause},
            transfered = #{transfered},
            trans_uuid = #{transUuid},
            trans_phone = #{transPhone},
            trans_answered = #{transAnswered},
            trans_start_time = #{transStartTime},
            trans_answer_time = #{transAnswerTime},
            early_asrtext = #{earlyAsrtext},
            early_path = #{earlyPath},
            early_url = #{earlyUrl},
            del_flag = #{delFlag},
            update_by = #{updateBy},
            update_time = #{updateTime},
            create_by = #{createBy},
            create_time = #{createTime},
            isupload = #{isupload},
            upload_time = #{uploadTime},
            orgid = #{orgid},
            guid = #{guid},
        
        where uuid = #{uuid}
    
    
        delete
        from ivr_taskcallrecord
        where uuid = #{uuid}
    
    
        delete from ivr_taskcallrecord where uuid in
        
            #{uuid}