|
@@ -33,7 +33,7 @@ class Headquarters extends BaseController
|
|
|
if ($post['type'] !== '') $condition[] = ['type', '=', $post['type']];
|
|
|
|
|
|
//兼容原有各个接口的筛选
|
|
|
- $count = Db::name('headquarters')
|
|
|
+ $count = Db::name('supplier')
|
|
|
->where($condition)
|
|
|
->count('id');
|
|
|
|
|
@@ -336,7 +336,7 @@ class Headquarters extends BaseController
|
|
|
{
|
|
|
$companyNo = $this->request->filter('trim')->post('code');
|
|
|
|
|
|
- $res_1 = Db::name('headquarters')
|
|
|
+ $res_1 = Db::name('supplier')
|
|
|
->where('is_del', 0)
|
|
|
->whereIn('code', $companyNo)
|
|
|
->column('name', 'code');
|