| | |
| | | |
| | | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
| | | import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO; |
| | | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO; |
| | | import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; |
| | | import cn.iocoder.yudao.module.system.service.dept.DeptService; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<DeptRespDTO> getDeptList() { |
| | | List<DeptDO> depts = deptService.getDeptList(new DeptListReqVO()); |
| | | return BeanUtils.toBean(depts, DeptRespDTO.class); |
| | | } |
| | | |
| | | @Override |
| | | public void validateDeptList(Collection<Long> ids) { |
| | | deptService.validateDeptList(ids); |
| | | } |