| | |
| | | import com.gk.hotwork.Domain.dto.DepInfoRPCRespDTO; |
| | | import com.gk.hotwork.Service.DepartmentService; |
| | | import com.gk.hotwork.Service.Middle.AccountDepartmentService; |
| | | import com.gk.hotwork.specialWork.model.dto.resp.DepRPCRespDTO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | return new ResultVO<>(ResultCodes.OK,result); |
| | | } |
| | | |
| | | @Override |
| | | public ResultVO<List<DepRPCRespDTO>> depList() { |
| | | List<DepartmentVo> depDos = departmentService.selectByAll(); |
| | | List<DepRPCRespDTO> result = new ArrayList<>(depDos.size()); |
| | | if (depDos.size() > 0) { |
| | | for (DepartmentVo depDo : depDos) { |
| | | DepRPCRespDTO respDTO = new DepRPCRespDTO(); |
| | | respDTO.setDepId(depDo.getId()); |
| | | respDTO.setDepName(depDo.getDepartment()); |
| | | respDTO.setStatus(depDo.getIsdel()); |
| | | respDTO.setChildren(Collections.emptyList()); |
| | | result.add(respDTO); |
| | | } |
| | | } |
| | | return new ResultVO<>(ResultCodes.OK,result); |
| | | } |
| | | |
| | | } |