32 lines
651 B
Java
Raw Normal View History

2020-07-20 10:41:32 +08:00
package com.ruoyi.system.mapper;
2020-02-13 10:48:51 +08:00
import com.ruoyi.common.core.page.BaseMapperPlus;
2020-07-20 10:41:32 +08:00
import com.ruoyi.system.domain.SysPost;
2020-02-13 10:48:51 +08:00
import java.util.List;
2020-02-13 10:48:51 +08:00
/**
* 岗位信息 数据层
*
2020-02-13 10:48:51 +08:00
* @author ruoyi
*/
public interface SysPostMapper extends BaseMapperPlus<SysPost> {
2020-02-13 10:48:51 +08:00
/**
* 根据用户ID获取岗位选择框列表
*
2020-02-13 10:48:51 +08:00
* @param userId 用户ID
* @return 选中岗位ID列表
*/
public List<Integer> selectPostListByUserId(Long userId);
/**
* 查询用户所属岗位组
*
2020-02-13 10:48:51 +08:00
* @param userName 用户名
* @return 结果
*/
public List<SysPost> selectPostsByUserName(String userName);
}