|
@@ -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}");
|
|
|
+//
|
|
|
}
|
|
|
}
|
|
|
|