ROLEMapper.java
795 字节
package com.tianbo.warehouse.dao;
import com.tianbo.warehouse.model.ROLE;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ROLEMapper {
int deleteByPrimaryKey(Integer roleId);
int insert(ROLE record);
int insertSelective(ROLE record);
ROLE selectByPrimaryKey(Integer roleId);
List<ROLE> findRolesByUserId(Integer userId);
List<ROLE> selectByParentId(Integer roleId);
/**
* 查询最顶层企业信息
* @param roleId 组织机构ID
* @return
*/
List<ROLE> selectTopByChildID(Integer roleId);
List<ROLE> findAll(@Param("roleName") String roleName,
@Param("type") String type);
int updateByPrimaryKeySelective(ROLE record);
int updateByPrimaryKey(ROLE record);
}