瀏覽代碼

增加companyids判断

sandm 2 年之前
父節點
當前提交
293239df48
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/common/api/EnterpriseApi.php

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

@@ -110,7 +110,7 @@ class EnterpriseApi {
         if ($company_info['code'] != 'super') {
         if ($company_info['code'] != 'super') {
             $where[] = ['type', '=', session('user')['type']];
             $where[] = ['type', '=', session('user')['type']];
             if (session('user')['type'] == 1) {
             if (session('user')['type'] == 1) {
-                $list = Db::table('sys_enterprisetype_properties')->where('companyIds', 'like', $companyId)->select()->toArray();
+                $list = Db::table('sys_enterprisetype_properties')->where('companyIds', 'like', "%{$companyId}%")->select()->toArray();
                 $talentType = [];
                 $talentType = [];
                 foreach ($list as $k => $v) {
                 foreach ($list as $k => $v) {
                     array_push($talentType, $v['talentType']);
                     array_push($talentType, $v['talentType']);