diff --git a/app/controller/api/v1/User.php b/app/controller/api/v1/User.php index 045eef6..dcaeb78 100644 --- a/app/controller/api/v1/User.php +++ b/app/controller/api/v1/User.php @@ -501,7 +501,7 @@ class User extends Base $where[] = ['cl.day', 'like', $ym.'%']; $where[] = ['cl.account_id', '=', $accountId]; $where[] = ['cl.role', '=', $account['role']]; - $where[] = ['cl.worksite_id', '=', $worksiteId ?: $accountId['worksite_id']]; + $where[] = ['cl.worksite_id', '=', $worksiteId ?: $account['worksite_id']]; $list = \app\model\ClockLog::alias('cl') ->where($where) ->select();