| | |
| | | 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; |
| | |
| | | import javax.annotation.Resource; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | import static cn.lihu.jh.framework.common.pojo.CommonResult.success; |
| | | |
| | | /** |
| | | * 部门 API 实现类 |
| | |
| | | return BeanUtils.toBean(childDeptList, DeptRespDTO.class); |
| | | } |
| | | |
| | | @Override |
| | | public List<DeptRespDTO> getSimpleDeptList() { |
| | | List<DeptDO> depts = deptService.getSimpleDeptList(); |
| | | return BeanUtils.toBean(depts, DeptRespDTO.class); |
| | | } |
| | | |
| | | } |