feat(接口): 用户信息-审核中信息调整

master
yin5th 2023-01-15 10:57:08 +08:00
parent f15d8c6c8d
commit c70ae0ab83
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ class Worker extends Base
} }
} }
if (!$checkLog = CheckLog::where('account_id', $accountId)->whereIn('status', [CheckLog::COMMON_OFF, -1]) if (!$checkLog = CheckLog::where('account_id', $accountId)->where('status', CheckLog::COMMON_OFF)
->find()) { ->find()) {
// 没有待审核的记录则新增 // 没有待审核的记录则新增
$insert['created_at'] = date('Y-m-d H:i:s'); $insert['created_at'] = date('Y-m-d H:i:s');

View File

@ -16,7 +16,7 @@ class CheckLog extends Base
return self::alias('cl') return self::alias('cl')
->leftJoin('position p', 'p.id = cl.position') ->leftJoin('position p', 'p.id = cl.position')
->where('cl.account_id', $accountId) ->where('cl.account_id', $accountId)
->whereIn('cl.status', [self::COMMON_OFF, -1]) ->whereIn('cl.status', [self::COMMON_OFF])
->field('cl.*,p.name as position_name') ->field('cl.*,p.name as position_name')
->order('cl.id', 'desc') ->order('cl.id', 'desc')
->find(); ->find();