Commit 48a84170 by 宁成龙

统计部门人数时,只统计在职人数

parent dde83c7a
Showing with 1 additions and 1 deletions
......@@ -35,7 +35,7 @@ class CmsUser extends BaseModel
//根据部门id获取列表
public static function getUserListByDepartmentId($departmentIds)
{
$res = self::whereIn('department_id', $departmentIds)->get();
$res = self::whereIn('department_id', $departmentIds)->where("status",0)->get();//只统计在职的
return ($res) ? $res->toArray() : [];
}
......
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 sign in to comment