| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace hd\controllers;
- use bizHd\merchant\services\ShopService;
- use bizGhs\merchant\services\SupplierService;
- use common\components\dirUtil;
- use common\components\util;
- use common\components\wxUtil;
- use Yii;
- class SupplierController extends BaseController
- {
-
- //供货商列表 shish 2021.1.24
- public function actionList()
- {
- $where = [];
- $where['merchantId'] = $this->sjId;
- $respond = SupplierService::getSupplierList($where);
- util::success($respond);
- }
-
- //待结款供货商列表 shish 2021.1.26
- public function actionDebtList()
- {
- $get = Yii::$app->request->get();
- $where = ['merchantId' => $this->sjId];
- $status = $get['status'] ?? 0;
- if (!empty($status)) {
- $where['status'] = $status;
- }
- $list = SupplierService::getDebtList($where);
- util::success($list);
- }
-
- }
|