|
@@ -381,24 +381,6 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
|
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 查询职能列表
|
|
|
- * @param array $data
|
|
|
- * @return array
|
|
|
- */
|
|
|
- public function getDepartment(array $data): array
|
|
|
- {
|
|
|
- $where = [
|
|
|
- 'pid' => $data['pid'] ?? 0,
|
|
|
- ];
|
|
|
- $result = Department::where($where)->orderBy("sort", "desc")->get();
|
|
|
- if (empty($result)) {
|
|
|
- return Result::error("查询失败", 0);
|
|
|
- } else {
|
|
|
- return Result::success($result);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 后台获取职能部门
|
|
|
* @param array $data
|