wugg 2 years ago
parent
commit
e707d3943f

+ 3 - 6
app/admin/controller/Consult.php

@@ -1243,14 +1243,11 @@ class Consult extends Base
 
             //判断支付渠道中是否有相关供应商
             $is_select_pay_rate = Db::name('platform')
-                ->where(['is_del' => 0, 'id' => $zx['platform_code']])
+                ->where(['is_del' => 0, 'id' => $zx['platform_code'],"status"=>1])
                 ->value('is_select_pay_rate', 0);
             if ($is_select_pay_rate == 1) {
-                $temp = Db::name('platform_pay_rate')
-                    ->field('id')
-                    ->where(['is_del' => 0, 'platform_id' => $zx['platform_code'], 'companyNo' => $supplierArr['relation_code']])
-                    ->findOrEmpty();
-                if (!empty($temp)) return json_show(1004, '招标任务平台已存在该供应商,请更换其他供应商');
+               if(channel_is_company($zx['platform_code'],$supplierArr['relation_code'])) return  error_show(1004, "平台渠道含有业务公司{$supplierNo}");
+//
             }
         }
 

+ 1 - 1
app/admin/controller/Filing.php

@@ -242,7 +242,7 @@ class Filing extends Base
 
         $tmp = Db::name('platform')
             ->where(['is_del' => 0, 'id' => $param['platform_id']])
-            ->field('id,is_select_pay_rate')
+            ->field('id,is_select_pay_rate,status')
             ->findOrEmpty();
         if (empty($tmp)) return json_show(1005, '该平台不存在');
         if ($tmp['status'] != 1) return error_show(1004, "平台信息已禁用");

+ 1 - 1
app/admin/controller/Goodup.php

@@ -1577,7 +1577,7 @@ class Goodup extends Base
 
         //区分是否是对接平台
         $platform_info=Db::name('platform')
-            ->field('id,platform_type,is_select_pay_rate')
+            ->field('id,platform_type,is_select_pay_rate,status')
             ->where(['is_del'=>0,'id'=>$platform])
             ->findOrEmpty();
         if(empty($platform_info)) return error_show(1005,'所选的平台不存在');