|
@@ -15,6 +15,7 @@ import org.jeecg.modules.Index.mapper.IndexZcbMapper;
|
|
|
import org.jeecg.modules.Index.service.IndexZcbService;
|
|
|
import org.jeecg.modules.Index.util.AuthMark;
|
|
|
import org.jeecg.modules.Index.util.CommonMethod;
|
|
|
+import org.jeecg.modules.system.mapper.SysUserDepartMapper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -54,6 +55,10 @@ public class IndexZcbServiceImpl implements IndexZcbService {
|
|
|
@SuppressWarnings("all")
|
|
|
private CommonMethod commonMethod;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ @SuppressWarnings("all")
|
|
|
+ private SysUserDepartMapper sysUserDepartMapper;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* author: dzc
|
|
@@ -74,7 +79,7 @@ public class IndexZcbServiceImpl implements IndexZcbService {
|
|
|
//获取当前用户的角色的集合 (一个用户可能会有多个角色)
|
|
|
String role = commonMethod.getRole(username);
|
|
|
// 根据用户名查询对应的部门
|
|
|
- List<String> deptList = indexZcbMapper.getDepartByUsername(username);
|
|
|
+ List<String> deptList = sysUserDepartMapper.getDepartByUsername(username);
|
|
|
//处理当前系统日期
|
|
|
SimpleDateFormat simpl = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
SimpleDateFormat simpl1 = new SimpleDateFormat("yyyy-MM");
|
|
@@ -320,7 +325,7 @@ public class IndexZcbServiceImpl implements IndexZcbService {
|
|
|
//获取当前用户的角色的集合 (一个用户可能会有多个角色)
|
|
|
String role = commonMethod.getRole(username);
|
|
|
// 该用户的部门
|
|
|
- List<String> deptList = indexZcbMapper.getDepartByUsername(username);
|
|
|
+ List<String> deptList = sysUserDepartMapper.getDepartByUsername(username);
|
|
|
// 创建响应给前端的实体
|
|
|
//ArrayList<IndexChartInfoVo> resultList = new ArrayList<>();
|
|
|
ArrayList<EightCostChartInfoVo> resultList = new ArrayList<>();
|
|
@@ -694,7 +699,7 @@ public class IndexZcbServiceImpl implements IndexZcbService {
|
|
|
// 查询当前用户的角色id (一个用户可能对应多个角色)
|
|
|
String role = commonMethod.getRole(username);
|
|
|
// 该用户的部门
|
|
|
- List<String> deptList = indexZcbMapper.getDepartByUsername(username);
|
|
|
+ List<String> deptList = sysUserDepartMapper.getDepartByUsername(username);
|
|
|
// 创建响应给前端的实体
|
|
|
ArrayList<ResultEightCost> resultList = new ArrayList<>();
|
|
|
// 获取前端传过来的 开始日期 和 结束日期
|