select ecid, oldid, orgid, questionoptionid, topicid, psqid, guid,orand, ruleverify, ruleconditions, rulecontent, groupnumber, grouporand, number, istrack, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time from svy_lib_exception
    
    
    
    
        insert into svy_lib_exception
        
            oldid,
            orgid,
            questionoptionid,
            topicid,
            psqid,
            orand,
            ruleverify,
            ruleconditions,
            rulecontent,
            groupnumber,
            grouporand,
            number,
            istrack,
            del_flag,
            update_by,
            update_time,
            create_by,
            create_time,
            isupload,
            upload_time,
            guid,
         
        
            #{oldid},
            #{orgid},
            #{questionoptionid},
            #{topicid},
            #{psqid},
            #{orand},
            #{ruleverify},
            #{ruleconditions},
            #{rulecontent},
            #{groupnumber},
            #{grouporand},
            #{number},
            #{istrack},
            #{delFlag},
            #{updateBy},
            #{updateTime},
            #{createBy},
            #{createTime},
            #{isupload},
            #{uploadTime},
            #{guid},
         
    
    
        update svy_lib_exception
        
            oldid = #{oldid},
            orgid = #{orgid},
            questionoptionid = #{questionoptionid},
            topicid = #{topicid},
            psqid = #{psqid},
            orand = #{orand},
            ruleverify = #{ruleverify},
            ruleconditions = #{ruleconditions},
            rulecontent = #{rulecontent},
            groupnumber = #{groupnumber},
            grouporand = #{grouporand},
            number = #{number},
            istrack = #{istrack},
            del_flag = #{delFlag},
            update_by = #{updateBy},
            update_time = #{updateTime},
            create_by = #{createBy},
            create_time = #{createTime},
            isupload = #{isupload},
            upload_time = #{uploadTime},
            guid = #{guid},
        
        where ecid = #{ecid}
    
    
        delete from svy_lib_exception where ecid = #{ecid}
    
    
        delete from svy_lib_exception where ecid in
        
            #{ecid}