| | |
| | | import com.yuanchu.mom.dto.UserPageDto; |
| | | import com.yuanchu.mom.pojo.User; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Mapper |
| | | @Repository |
| | |
| | | //获取系统的某个角色的账号 |
| | | List<User> getUserByRole(String name); |
| | | |
| | | /** |
| | | * 获取用户部门 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | String selectUserDepartmentLimsName(@Param("userId") Integer userId); |
| | | |
| | | /** |
| | | * 获取当前登录用户部门下的所有用户 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | List<User> selectDepartmentLimsUserList(@Param("userId") Integer userId); |
| | | |
| | | |
| | | /** |
| | | * 查询用户和部门 |
| | | * @param participant |
| | | * @return |
| | | */ |
| | | List<Map<String, String>> selectNameAnddepartment(@Param("participant") String participant); |
| | | } |