diff --git a/app/model/CheckLog.php b/app/model/CheckLog.php index dcd8461..52c92f0 100644 --- a/app/model/CheckLog.php +++ b/app/model/CheckLog.php @@ -15,9 +15,10 @@ class CheckLog extends Base { return self::alias('cl') ->leftJoin('position p', 'p.id = cl.position') + ->leftJoin('outsource o', 'o.id = cl.outsource_id') ->where('cl.account_id', $accountId) ->whereIn('cl.status', [self::COMMON_OFF]) - ->field('cl.*,p.name as position_name') + ->field('cl.*,p.name as position_name,o.name as outsource_name') ->order('cl.id', 'desc') ->find(); }