|
@@ -765,6 +765,20 @@ class UserInfo extends BaseController
|
|
|
return json_show(0, "获取成功", $list);
|
|
|
}
|
|
|
|
|
|
+ //检查供应商是否有开通账号
|
|
|
+ public function checkHasAccountBySupplierNos()
|
|
|
+ {
|
|
|
+
|
|
|
+ $supplierNos = $this->request->post('supplierNo', '', 'trim');
|
|
|
+
|
|
|
+ $list = Db::name('account_company')
|
|
|
+ ->where(['companyCode' => $supplierNos, 'is_del' => 0, 'status' => 1])
|
|
|
+ ->whereLike('companyCode', 'QS%')
|
|
|
+ ->group('companyCode')
|
|
|
+ ->column('count(id)', 'companyCode');
|
|
|
+
|
|
|
+ return json_show(0, '获取供应商账号开通情况成功', $list);
|
|
|
|
|
|
+ }
|
|
|
|
|
|
}
|