feat(接口): 用户信息-审核中信息调整
parent
f15d8c6c8d
commit
c70ae0ab83
|
@ -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()) {
|
||||
// 没有待审核的记录则新增
|
||||
$insert['created_at'] = date('Y-m-d H:i:s');
|
||||
|
|
|
@ -16,7 +16,7 @@ class CheckLog extends Base
|
|||
return self::alias('cl')
|
||||
->leftJoin('position p', 'p.id = cl.position')
|
||||
->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')
|
||||
->order('cl.id', 'desc')
|
||||
->find();
|
||||
|
|
Loading…
Reference in New Issue