id, project_id, group_id, sort
  
  
  
    
    delete from ir_project_group
    where id = #{id,jdbcType=BIGINT}
  
  
    
    insert into ir_project_group (id, project_id, group_id, 
      sort)
    values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{groupId,jdbcType=BIGINT}, 
      #{sort,jdbcType=INTEGER})
  
  
    
    insert into ir_project_group
    
      
        id,
      
      
        project_id,
      
      
        group_id,
      
      
        sort,
      
    
    
      
        #{id,jdbcType=BIGINT},
      
      
        #{projectId,jdbcType=BIGINT},
      
      
        #{groupId,jdbcType=BIGINT},
      
      
        #{sort,jdbcType=INTEGER},
      
    
  
  
    
    update ir_project_group
    
      
        project_id = #{projectId,jdbcType=BIGINT},
      
      
        group_id = #{groupId,jdbcType=BIGINT},
      
      
        sort = #{sort,jdbcType=INTEGER},
      
    
    where id = #{id,jdbcType=BIGINT}
  
  
    
    update ir_project_group
    set project_id = #{projectId,jdbcType=BIGINT},
      group_id = #{groupId,jdbcType=BIGINT},
      sort = #{sort,jdbcType=INTEGER}
    where id = #{id,jdbcType=BIGINT}
  
  
  
    delete from ir_project_group where project_id=#{projectId}