package com.dy.pipIrrGlobal.daoBa; 
 | 
  
 | 
import com.baomidou.mybatisplus.core.mapper.BaseMapper; 
 | 
import com.dy.pipIrrGlobal.pojoBa.BaUserRole; 
 | 
import org.apache.ibatis.annotations.Mapper; 
 | 
import org.apache.ibatis.annotations.Param; 
 | 
  
 | 
@Mapper 
 | 
public interface BaUserRoleMapper extends BaseMapper<BaUserRole> { 
 | 
  
 | 
    /** 
 | 
     * insert record to table 
 | 
     * @param record the record 
 | 
     * @return insert count 
 | 
     */ 
 | 
    int putin(BaUserRole record); 
 | 
  
 | 
    /** 
 | 
     * insert record to table selective 
 | 
     * @param record the record 
 | 
     * @return insert count 
 | 
     */ 
 | 
    int insertSelective(BaUserRole record); 
 | 
  
 | 
    /** 
 | 
     * delete by primary key 
 | 
     * @param userId primaryKey 
 | 
     * @param roleId primaryKey 
 | 
     * @return deleteCount 
 | 
     */ 
 | 
    int deleteByPrimaryKey(@Param("userId") Long userId, @Param("roleId") Long roleId); 
 | 
  
 | 
    /** 
 | 
     * delete by primary key 
 | 
     * @param userId primaryKey 
 | 
     * @return deleteCount 
 | 
     */ 
 | 
    int deleteByUserId(@Param("userId") Long userId); 
 | 
  
 | 
    /** 
 | 
     * delete by primary key 
 | 
     * @param roleId primaryKey 
 | 
     * @return deleteCount 
 | 
     */ 
 | 
    int deleteByRoleId(@Param("roleId") Long roleId); 
 | 
} 
 |