diff --git a/app/adminapi/lists/CompanyLists.php b/app/adminapi/lists/CompanyLists.php index a2a51ba2e..72c75f186 100644 --- a/app/adminapi/lists/CompanyLists.php +++ b/app/adminapi/lists/CompanyLists.php @@ -106,7 +106,7 @@ class CompanyLists extends BaseAdminDataLists implements ListsSearchInterface }) ->withAttr('notes',function($value,$data){ if ($data['is_authentication'] == 1) { - return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 2)->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 { return Db::name('company_authentication_fail_log')->where('company_id',$data['id'])->where('log_type', 1)->value('fail_reason'); }