sugangqiang 2 năm trước cách đây
mục cha
commit
5ba5a26443
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      app/common/api/EnterpriseApi.php

+ 5 - 5
app/common/api/EnterpriseApi.php

@@ -26,10 +26,10 @@ class EnterpriseApi {
         if ($company_info['code'] != 'super') {
             $where[] = ['type', '=', session('user')['type']];
             if (session('user')['type'] == 1) {
-                $list = Db::table('sys_enterprisetype_properties')->where('companyIds', 'like', "%{$companyId}%")->select()->toArray();
+                $list = \app\common\model\EnterpriseVerifyMgr::where('companyId', '=', $companyId)->select()->toArray();
                 $talentType = [];
                 foreach ($list as $k => $v) {
-                    array_push($talentType, $v['talentType']);
+                    array_push($talentType, $v['enterpriseTag']);
                 }
                 $where[] = ['enterpriseTag', 'in', $talentType];
             }
@@ -110,10 +110,10 @@ class EnterpriseApi {
         if ($company_info['code'] != 'super') {
             $where[] = ['type', '=', session('user')['type']];
             if (session('user')['type'] == 1) {
-                $list = Db::table('sys_enterprisetype_properties')->where('companyIds', 'like', "%{$companyId}%")->select()->toArray();
+                $list = \app\common\model\EnterpriseVerifyMgr::where('companyId', '=', $companyId)->select()->toArray();
                 $talentType = [];
                 foreach ($list as $k => $v) {
-                    array_push($talentType, $v['talentType']);
+                    array_push($talentType, $v['enterpriseTag']);
                 }
                 $where[] = ['newEnterpriseTag', 'in', $talentType];
             }
@@ -165,7 +165,7 @@ class EnterpriseApi {
         }
         if ($checkState) {
             $where[] = ["checkState", "=", "{$checkState}"];
-        }else{
+        } else {
             $where[] = ['checkState', '>', 1];
         }
         if ($newStreet) {