登录null修复
This commit is contained in:
parent
76c7de5d3a
commit
f5060c81a1
@ -543,8 +543,14 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
|
|||||||
if (systemUser != null && systemUser.getWorkerId() != null) {
|
if (systemUser != null && systemUser.getWorkerId() != null) {
|
||||||
result.put("workerId", systemUser.getWorkerId().toString());
|
result.put("workerId", systemUser.getWorkerId().toString());
|
||||||
WorkerInfo workerInfo = workerInfoMapper.selectById(systemUser.getWorkerId());
|
WorkerInfo workerInfo = workerInfoMapper.selectById(systemUser.getWorkerId());
|
||||||
result.put("enterpriseId", workerInfo.getEnterpriseId());
|
Long enterpriseId = null;
|
||||||
result.put("workerNature", workerInfo == null ? null : workerInfo.getWorkerNature());
|
Integer workerNature = null;
|
||||||
|
if (workerInfo != null) {
|
||||||
|
enterpriseId = workerInfo.getEnterpriseId();
|
||||||
|
workerNature = workerInfo.getWorkerNature();
|
||||||
|
}
|
||||||
|
result.put("enterpriseId", enterpriseId);
|
||||||
|
result.put("workerNature", workerNature);
|
||||||
} else {
|
} else {
|
||||||
result.put("workerId", "");
|
result.put("workerId", "");
|
||||||
result.put("workerNature", null);
|
result.put("workerNature", null);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user