select id,
               assortname,
               hetype,
               orgid,
               del_flag,
               update_by,
               update_time,
               create_by,
               create_time,
               isupload,
               upload_time,
               pid,
               guid,
               seqno
        from he_library_assort
    
    
    
    
    
        insert into he_library_assort
        
            assortname,
            orgid,
            del_flag,
            update_by,
            update_time,
            create_by,
            create_time,
            isupload,
            upload_time,
            pid,
            guid,
            seqno,
            hetype,
        
        
            #{assortname},
            #{orgid},
            #{delFlag},
            #{updateBy},
            #{updateTime},
            #{createBy},
            #{createTime},
            #{isupload},
            #{uploadTime},
            #{pid},
            #{guid},
            #{seqno},
            #{hetype},
        
    
    
        update he_library_assort
        
            assortname = #{assortname},
            orgid = #{orgid},
            del_flag = #{delFlag},
            update_by = #{updateBy},
            update_time = #{updateTime},
            create_by = #{createBy},
            create_time = #{createTime},
            isupload = #{isupload},
            upload_time = #{uploadTime},
            pid = #{pid},
            guid = #{guid},
            hetype = #{hetype},
        
        where id = #{id}
    
    
        update he_library_assort
        
           del_flag = 1
        
        where id = #{id}
    
    
        delete from he_library_assort where id in
        
            #{id}