fix(打卡审核列表): 过滤补卡记录

master
yin5th 2023-01-16 14:46:51 +08:00
parent f63aa0de64
commit 47e369f6bd
1 changed files with 1 additions and 0 deletions

View File

@ -244,6 +244,7 @@ class Manager extends Base
// 负责工地 // 负责工地
$worksiteIds = AccountWorksite::where('account_id', $accountId)->column('worksite_id'); $worksiteIds = AccountWorksite::where('account_id', $accountId)->column('worksite_id');
$where[] = ['cl.worksite_id', 'in', $worksiteIds]; $where[] = ['cl.worksite_id', 'in', $worksiteIds];
$where[] = ['cl.is_replenish', '=', 0];
$query = \app\model\ClockLog::alias('cl') $query = \app\model\ClockLog::alias('cl')
->leftJoin('account a', 'a.id = cl.account_id') ->leftJoin('account a', 'a.id = cl.account_id')