展连设备数据解析策略
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package com.fastbee.framework.web.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import com.fastbee.common.constant.CacheConstants;
|
||||
import com.fastbee.common.constant.Constants;
|
||||
import com.fastbee.common.core.domain.entity.SysDept;
|
||||
@ -19,6 +20,7 @@ import com.fastbee.common.utils.ip.IpUtils;
|
||||
import com.fastbee.framework.manager.AsyncManager;
|
||||
import com.fastbee.framework.manager.factory.AsyncFactory;
|
||||
import com.fastbee.framework.security.context.AuthenticationContextHolder;
|
||||
import com.fastbee.system.mapper.SysDeptMapper;
|
||||
import com.fastbee.system.service.ISysConfigService;
|
||||
import com.fastbee.system.service.ISysDeptService;
|
||||
import com.fastbee.system.service.ISysUserService;
|
||||
@ -59,8 +61,11 @@ public class SysLoginService {
|
||||
|
||||
@Resource
|
||||
private SysPasswordService passwordService;
|
||||
@Resource
|
||||
private ISysDeptService sysDeptService;
|
||||
// @Resource
|
||||
// private ISysDeptService sysDeptService;
|
||||
|
||||
@Autowired
|
||||
private SysDeptMapper deptMapper;
|
||||
|
||||
/**
|
||||
* 登录验证
|
||||
@ -111,7 +116,11 @@ public class SysLoginService {
|
||||
// throw new ServiceException("只允许终端用户登录!");
|
||||
// }
|
||||
// }
|
||||
SysDept sysDept = sysDeptService.selectDeptById(deptId);
|
||||
|
||||
SysDept sysDept = new LambdaQueryChainWrapper<>(deptMapper)
|
||||
.select(SysDept::getDeptUserId)
|
||||
.eq(SysDept::getDeptId, deptId)
|
||||
.one();
|
||||
recordLoginInfo(loginUser.getUserId());
|
||||
loginUser.setLanguage(language);
|
||||
loginUser.setDeptUserId(sysDept.getDeptUserId());
|
||||
|
Reference in New Issue
Block a user