Commit 7fefe48e authored by cq990612's avatar cq990612

优化代码结构

parent 69e136a8
......@@ -236,7 +236,8 @@ public class WorkProjectServiceImpl implements WorkProjectService {
// 中心级
if (rank.equals(LevelRankEnum.CENTRAL_LEVEL.getRank())) {
List<Integer> deptIds = new ArrayList<>();
WorkCentre workCentre = workCentreMapper.getByManagerId(user.getId());
Integer centreId = workDeptService.getById(user.getDeptId()).getCentreId();
WorkCentre workCentre = workCentreMapper.selectById(centreId);
HashMap<String, Object> map = new HashMap<>(5);
map.put("centre_id", workCentre.getId());
List<WorkDept> workDeptList = workDeptMapper.getDeptByCondition(map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment