fix(接口): 月度打卡记录修复

master
yin5th 2023-01-15 11:30:21 +08:00
parent 1ae1cbc429
commit f8b46f863b
1 changed files with 1 additions and 1 deletions

View File

@ -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();