|
|
@ -27,6 +27,7 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -49,4 +50,13 @@ public class DeptClient implements IDeptClient { |
|
|
|
List<Dept> deptChild = service.getMyDeptNode(deptId); |
|
|
|
List<Dept> deptChild = service.getMyDeptNode(deptId); |
|
|
|
return deptChild; |
|
|
|
return deptChild; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public String findNameById(Long deptId) { |
|
|
|
|
|
|
|
Dept dept = service.getById(deptId); |
|
|
|
|
|
|
|
if(!Objects.isNull(dept)){ |
|
|
|
|
|
|
|
return dept.getDeptName(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|