add
This commit is contained in:
parent
e33e846538
commit
cdadfa42e9
@ -106,9 +106,9 @@ class CompanyLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
})
|
})
|
||||||
->withAttr('notes',function($value,$data){
|
->withAttr('notes',function($value,$data){
|
||||||
if ($data['is_authentication'] == 1) {
|
if ($data['is_authentication'] == 1) {
|
||||||
return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 2)->order(['id'=>desc])->limit(1)->value('fail_reason');
|
return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 2)->order(['id'=>'desc'])->limit(1)->value('fail_reason');
|
||||||
} else {
|
} else {
|
||||||
return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 1)->value('fail_reason');
|
return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 1)->order(['id'=>'desc'])->limit(1)->value('fail_reason');
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user