package com.dy.pmsGlobal.daoBa;
|
|
import com.dy.pmsGlobal.pojoBa.BaRole;
|
import com.dy.pmsGlobal.pojoBa.BaUser;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
@Mapper
|
public interface BaRoleMapper {
|
BaRole selectByPrimaryKey(Long id);
|
|
|
/**
|
* 查询某个用户所隶属于的角色
|
* @param userId 用户ID
|
* @return List<BaRole>
|
*/
|
List<BaRole> selectByUserId(@Param("userId") Long userId) ;
|
|
int insert(BaRole record);
|
|
int insertSelective(BaRole record);
|
|
|
int updateByPrimaryKeySelective(BaRole record);
|
|
int updateByPrimaryKey(BaRole record);
|
|
|
int deleteByPrimaryKey(Long id);
|
|
/**
|
* 逻辑删除
|
* @param id primaryKey
|
* @return update count
|
*/
|
int deleteLogicById(Long id);
|
|
Long selectSomeCount(Map<String, Object> params);
|
|
List<BaRole> selectSome(Map<String, Object> params);
|
|
List<BaRole> selectAll();
|
}
|