|
@@ -1,6 +1,8 @@
|
|
package org.jeecg.modules.Index.service.impl;
|
|
package org.jeecg.modules.Index.service.impl;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.shiro.SecurityUtils;
|
|
import org.apache.shiro.SecurityUtils;
|
|
import org.apache.shiro.subject.Subject;
|
|
import org.apache.shiro.subject.Subject;
|
|
@@ -15,8 +17,10 @@ import org.jeecg.modules.Index.mapper.IndexZcbMapper;
|
|
import org.jeecg.modules.Index.service.IndexZcbService;
|
|
import org.jeecg.modules.Index.service.IndexZcbService;
|
|
import org.jeecg.modules.Index.util.AuthMark;
|
|
import org.jeecg.modules.Index.util.AuthMark;
|
|
import org.jeecg.modules.Index.util.CommonMethod;
|
|
import org.jeecg.modules.Index.util.CommonMethod;
|
|
|
|
+import org.jeecg.modules.system.entity.SysUser;
|
|
import org.jeecg.modules.system.mapper.SysDepartMapper;
|
|
import org.jeecg.modules.system.mapper.SysDepartMapper;
|
|
import org.jeecg.modules.system.mapper.SysUserDepartMapper;
|
|
import org.jeecg.modules.system.mapper.SysUserDepartMapper;
|
|
|
|
+import org.jeecg.modules.system.mapper.SysUserMapper;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -63,7 +67,8 @@ public class IndexZcbServiceImpl implements IndexZcbService {
|
|
@Autowired
|
|
@Autowired
|
|
private SysDepartMapper sysDepartMapper;
|
|
private SysDepartMapper sysDepartMapper;
|
|
|
|
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SysUserMapper sysUserMapper;
|
|
/**
|
|
/**
|
|
* author: dzc
|
|
* author: dzc
|
|
* version: 1.0
|
|
* version: 1.0
|
|
@@ -87,8 +92,8 @@ public class IndexZcbServiceImpl implements IndexZcbService {
|
|
role = AuthMark.DEPT_LEADER;
|
|
role = AuthMark.DEPT_LEADER;
|
|
deptList = departNameList;
|
|
deptList = departNameList;
|
|
}else {
|
|
}else {
|
|
- System.out.println(sysUser);
|
|
|
|
- String[] deptIds = sysUser.getDepartIds().split(",");
|
|
|
|
|
|
+ SysUser sysUser1 = sysUserMapper.selectUserById(sysUser.getId());
|
|
|
|
+ String[] deptIds = sysUser1.getDepartIds().split(",");
|
|
deptList = sysDepartMapper.getDepNameByIds(deptIds);
|
|
deptList = sysDepartMapper.getDepNameByIds(deptIds);
|
|
}
|
|
}
|
|
// 根据用户名查询对应的部门
|
|
// 根据用户名查询对应的部门
|