id, group_id, intake_id
  
  
  
    
    delete from ir_group_intake
    where id = #{id,jdbcType=BIGINT}
  
  
    
    insert into ir_group_intake (id, group_id, intake_id
      )
    values (#{id,jdbcType=BIGINT}, #{groupId,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}
      )
  
  
    
    insert into ir_group_intake
    
      
        id,
      
      
        group_id,
      
      
        intake_id,
      
    
    
      
        #{id,jdbcType=BIGINT},
      
      
        #{groupId,jdbcType=BIGINT},
      
      
        #{intakeId,jdbcType=BIGINT},
      
    
  
  
    
    update ir_group_intake
    
      
        group_id = #{groupId,jdbcType=BIGINT},
      
      
        intake_id = #{intakeId,jdbcType=BIGINT},
      
    
    where id = #{id,jdbcType=BIGINT}
  
  
    
    update ir_group_intake
    set group_id = #{groupId,jdbcType=BIGINT},
      intake_id = #{intakeId,jdbcType=BIGINT}
    where id = #{id,jdbcType=BIGINT}
  
  
  
  
  
    DELETE FROM ir_group_intake WHERE group_id = #{groupId}