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