package com.ruoyi.project.system.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.ruoyi.project.system.domain.SysUserDept; import com.ruoyi.project.system.domain.vo.SysUserDeptVo; import com.ruoyi.project.system.mapper.SysUserDeptMapper; import com.ruoyi.project.system.service.ISysUserDeptService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Collections; import java.util.List; @Service public class SysUserDeptServiceImpl implements ISysUserDeptService { @Autowired private SysUserDeptMapper sysUserDeptMapper; @Override public List userLoginFacotryList(SysUserDeptVo userDeptVo) { return sysUserDeptMapper.userLoginFacotryList(userDeptVo); } @Override public List getUserDeptList(Long userId) { LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(SysUserDept::getUserId, userId); return sysUserDeptMapper.selectList(queryWrapper); } }