update:创建公司,地区限制为同一类型公司不可重复选择

This commit is contained in:
chenbo 2023-10-10 10:49:21 +08:00
parent d07952db03
commit 7941ca4371

View File

@ -321,6 +321,7 @@ class CompanyController extends BaseAdminController
return $this->fail('参数不能为空'); return $this->fail('参数不能为空');
} }
$where[] = [$parmas['key'], '=', $parmas['value']]; $where[] = [$parmas['key'], '=', $parmas['value']];
$where[] = ['company_type', '=', $parmas['company_type']];
switch ($parmas['key']) { switch ($parmas['key']) {
case 'city': case 'city':
// $geo_area=Db::name('geo_area')->where('city_code', '=', $parmas['value'])->column('area_code'); // $geo_area=Db::name('geo_area')->where('city_code', '=', $parmas['value'])->column('area_code');