id,process_id,sort,
        content,is_start,is_end,
        is_record,equip_cycle_content,deleted,
        remark
    
    
    
        delete from pr_production_node
        where  id = #{id,jdbcType=BIGINT} 
    
    
        delete from pr_production_node
        where  process_id = #{processId,jdbcType=BIGINT}
    
    
        insert into pr_production_node
        
                id,
                process_id,
                sort,
                content,
                is_start,
                is_end,
                is_record,
                equip_cycle_content,
                deleted,
                remark,
        
        
                #{id,jdbcType=BIGINT},
                #{processId,jdbcType=BIGINT},
                #{sort,jdbcType=INTEGER},
                #{content,jdbcType=VARCHAR},
                #{isStart,jdbcType=TINYINT},
                #{isEnd,jdbcType=TINYINT},
                #{isRecord,jdbcType=TINYINT},
                #{equipCycleContent,jdbcType=VARCHAR},
                #{deleted,jdbcType=TINYINT},
                #{remark,jdbcType=VARCHAR},
        
    
    
       INSERT INTO pr_production_node (id,process_id,sort,
        content,is_start,is_end,
        is_record,equip_cycle_content,deleted,
        remark) VALUES
       
           #{item.id},
           #{item.processId},
           #{item.sort},
           #{item.content},
           #{item.isStart},
           #{item.isEnd},
           #{item.isRecord},
           #{item.equipCycleContent},
           #{item.deleted},
           #{item.remark}
       
    
    
        update pr_production_node
        
                
                    process_id = #{processId,jdbcType=BIGINT},
                
                
                    sort = #{sort,jdbcType=INTEGER},
                
                
                    content = #{content,jdbcType=VARCHAR},
                
                
                    is_start = #{isStart,jdbcType=TINYINT},
                
                
                    is_end = #{isEnd,jdbcType=TINYINT},
                
                
                    is_record = #{isRecord,jdbcType=TINYINT},
                
                
                    equip_cycle_content = #{equipCycleContent,jdbcType=VARCHAR},
                
                
                    deleted = #{deleted,jdbcType=TINYINT},
                
                
                    remark = #{remark,jdbcType=VARCHAR},
                
        
        where   id = #{id,jdbcType=BIGINT} 
    
    
    
        update pr_production_node set deleted = 1
        where id = #{id}