New file |
| | |
| | | package com.dy.pipIrrGlobal.daoBa; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dy.pipIrrGlobal.pojoBa.BaRolePrivilege; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | @Mapper |
| | | public interface BaRolePrivilegeMapper extends BaseMapper<BaRolePrivilege> { |
| | | |
| | | /** |
| | | * insert record to table |
| | | * @param record the record |
| | | * @return insert count |
| | | */ |
| | | int putin(BaRolePrivilege record); |
| | | |
| | | /** |
| | | * insert record to table selective |
| | | * @param record the record |
| | | * @return insert count |
| | | */ |
| | | int insertSelective(BaRolePrivilege record); |
| | | |
| | | /** |
| | | * delete by primary key |
| | | * @param roleId primaryKey |
| | | * @param privilegeId primaryKey |
| | | * @return deleteCount |
| | | */ |
| | | int deleteByPrimaryKey(@Param("roleId") Long roleId, @Param("privilegeId") Long privilegeId); |
| | | |
| | | /** |
| | | * delete by roleId |
| | | * @param roleId 角色ID |
| | | * @return deleteCount |
| | | */ |
| | | int deleteByRoleId(@Param("roleId") Long roleId); |
| | | |
| | | /** |
| | | * delete by roleId |
| | | * @param privilegeId 权限ID |
| | | * @return deleteCount |
| | | */ |
| | | int deleteByPrivilegeId(@Param("privilegeId") Long privilegeId); |
| | | |
| | | } |