select topicid,
               topictype,
               guid,
               topiccode,
               topic,
               tag,
               sort,
               ismandatory,
               ishide,
               del_flag,
               orgid,
               create_by,
               create_time,
               update_by,
               update_time,
               isupload,
               upload_time
        from svy_topic
    
    
    
    
        insert into svy_topic
        
            topictype,
            topiccode,
            topic,
            tag,
            sort,
            ismandatory,
            ishide,
            del_flag,
            orgid,
            create_by,
            create_time,
            update_by,
            update_time,
            isupload,
            upload_time,
            answer,
            guid,
        
        
            #{topictype},
            #{topiccode},
            #{topic},
            #{tag},
            #{sort},
            #{ismandatory},
            #{ishide},
            #{delFlag},
            #{orgid},
            #{createBy},
            #{createTime},
            #{updateBy},
            #{updateTime},
            #{isupload},
            #{uploadTime},
            #{answer},
            #{guid},
        
    
    
        update svy_topic
        
            topictype = #{topictype},
            topiccode = #{topiccode},
            topic = #{topic},
            tag = #{tag},
            sort = #{sort},
            ismandatory = #{ismandatory},
            ishide = #{ishide},
            del_flag = #{delFlag},
            orgid = #{orgid},
            create_by = #{createBy},
            create_time = #{createTime},
            update_by = #{updateBy},
            update_time = #{updateTime},
            isupload = #{isupload},
            upload_time = #{uploadTime},
            guid = #{guid},
        
        where topicid = #{topicid}
    
    
        delete
        from svy_topic
        where topicid = #{topicid}
    
    
        delete from svy_topic where topicid in
        
            #{topicid}