package com.lxzn.nc.dao;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.lxzn.framework.domain.nc.ComponentPermission;
|
import com.lxzn.framework.domain.ucenter.User;
|
import com.lxzn.framework.domain.ucenter.ext.UserDepartExt;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
public interface ComponentPermissionMapper extends BaseMapper<ComponentPermission> {
|
/**
|
* 获取已分配的用户
|
* @param componentId
|
* @return
|
*/
|
List<UserDepartExt> getUserPermsByComponentId(@Param("componentId") String componentId);
|
|
/**
|
* 获取未分配的用户
|
* @param componentId
|
* @return
|
*/
|
List<User> getUserNonPermsByComponentId(@Param("componentId") String componentId);
|
}
|