Commit 042a557f authored by 王源's avatar 王源 🎧

调整rpc方法为通过职级id数组获取用户占比数组

parent e3755c22
......@@ -196,4 +196,12 @@ interface BaseInfoServiceInterface
*/
public function departments(array $relations = [], array $columns = ['*']): array;
/**
* 通过职级id数组获取用户占比数组
* @param array $positionLevelIds 职级id数组,默认去重
* @return array
* @author Zero
*/
public function getRateByPositionLevelIds(array $positionLevelIds): array;
}
......@@ -139,14 +139,4 @@ interface UserServiceInterface
*/
public function belongToDepartments($userId, $deptId, $withChildren = false): bool;
/**
* 通过职级id数组获取用户数组
* @param array $positionLevelIds 职级id数组,默认去重
* @param array $columns 用户字段,默认['id', 'name','position_id']
* @param bool $withChildren 是否包含子职级,默认false
* @return array
* @author Zero
*/
public function getListByPositionLevelIds(array $positionLevelIds, $withChildren = false, $columns = ['id', 'name', 'position_id']): array;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment