select optionid,
               topicid,
               svyid,
               guid,
               topictype,
               optioncode,
               optioncontent,
               isexistdetail,
               detailismandatory,
               isexceptionitem,
               istrack,
               score,
               prompt,
               jump,
               parentoptionid,
               ismutex,
               verifyrule,
               sort,
               verificationtype,
               isrange,
               minrange,
               maxrange,
               rangelength,
               orgid,
               oldid,
               del_flag,
               create_by,
               create_time,
               update_by,
               update_time,
               isupload,
               upload_time
        from svy_topicoption
    
    
    
    
        insert into svy_topicoption
        
            topicid,
            svyid,
            topictype,
            optioncode,
            optioncontent,
            isexistdetail,
            detailismandatory,
            isexceptionitem,
            istrack,
            score,
            prompt,
            jump,
            parentoptionid,
            ismutex,
            verifyrule,
            sort,
            verificationtype,
            isrange,
            minrange,
            maxrange,
            rangelength,
            orgid,
            oldid,
            del_flag,
            create_by,
            create_time,
            update_by,
            update_time,
            isupload,
            upload_time,
            guid,
        
        
            #{topicid},
            #{svyid},
            #{topictype},
            #{optioncode},
            #{optioncontent},
            #{isexistdetail},
            #{detailismandatory},
            #{isexceptionitem},
            #{istrack},
            #{score},
            #{prompt},
            #{jump},
            #{parentoptionid},
            #{ismutex},
            #{verifyrule},
            #{sort},
            #{verificationtype},
            #{isrange},
            #{minrange},
            #{maxrange},
            #{rangelength},
            #{orgid},
            #{oldid},
            #{delFlag},
            #{createBy},
            #{createTime},
            #{updateBy},
            #{updateTime},
            #{isupload},
            #{uploadTime},
            #{guid},
        
    
    
        update svy_topicoption
        
            topicid = #{topicid},
            svyid = #{svyid},
            topictype = #{topictype},
            optioncode = #{optioncode},
            optioncontent = #{optioncontent},
            isexistdetail = #{isexistdetail},
            detailismandatory = #{detailismandatory},
            isexceptionitem = #{isexceptionitem},
            istrack = #{istrack},
            score = #{score},
            prompt = #{prompt},
            jump = #{jump},
            parentoptionid = #{parentoptionid},
            ismutex = #{ismutex},
            verifyrule = #{verifyrule},
            sort = #{sort},
            verificationtype = #{verificationtype},
            isrange = #{isrange},
            minrange = #{minrange},
            maxrange = #{maxrange},
            rangelength = #{rangelength},
            orgid = #{orgid},
            oldid = #{oldid},
            del_flag = #{delFlag},
            create_by = #{createBy},
            create_time = #{createTime},
            update_by = #{updateBy},
            update_time = #{updateTime},
            isupload = #{isupload},
            upload_time = #{uploadTime},
            guid = #{guid},
        
        where optionid = #{optionid}
    
    
        delete
        from svy_topicoption
        where optionid = #{optionid}
    
    
        delete from svy_topicoption where optionid in
        
            #{optionid}