heheng
2025-09-12 3b109477ba6bd8dce0f61eb75248e603e584d8af
gkhy-system/src/main/java/com/gkhy/system/service/impl/SysDeptServiceImpl.java
@@ -1,9 +1,10 @@
package com.gkhy.system.service.impl;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.*;
import java.util.stream.Collectors;
import cn.hutool.core.date.DateUtil;
import com.gkhy.system.domain.vo.DeptVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gkhy.common.annotation.DataScope;
@@ -49,6 +50,20 @@
    }
    /**
     * 统计安全检查数据
     * @param beginDate
     * @return
     */
    @Override
    public List<DeptVo> selectDeptData(Date beginDate) {
        if (beginDate == null){
            beginDate = new Date();
        }
        List<DeptVo> deptVos = deptMapper.selectDeptData(beginDate);
        return deptVos;
    }
    /**
     * 查询部门树结构信息
     * 
     * @param dept 部门信息