feat(用户信息接口): 子审核信息中添加班组字段

master
yin5th 2023-02-16 16:08:11 +08:00
parent b9eecf94ed
commit b99d9b1fe1
1 changed files with 2 additions and 1 deletions

View File

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