eight
2024-08-13 7660fe12273a6b132256a2fa83ca1b11d6b2381f
jh-module-system/jh-module-system-biz/src/main/java/cn/lihu/jh/module/system/api/dept/DeptApiImpl.java
@@ -1,5 +1,6 @@
package cn.lihu.jh.module.system.api.dept;
import cn.lihu.jh.framework.common.enums.CommonStatusEnum;
import cn.lihu.jh.framework.common.util.object.BeanUtils;
import cn.lihu.jh.module.system.api.dept.dto.DeptRespDTO;
import cn.lihu.jh.module.system.dal.dataobject.dept.DeptDO;
@@ -10,6 +11,8 @@
import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;
import static cn.lihu.jh.framework.common.pojo.CommonResult.success;
/**
 * 部门 API 实现类
@@ -45,4 +48,10 @@
        return BeanUtils.toBean(childDeptList, DeptRespDTO.class);
    }
    @Override
    public List<DeptRespDTO> getSimpleDeptList() {
        List<DeptDO> depts = deptService.getSimpleDeptList();
        return BeanUtils.toBean(depts, DeptRespDTO.class);
    }
}