| 123456789101112131415161718192021222324252627282930 |
- <?php
- namespace ghs\controllers;
- use biz\ghs\classes\GhsClass;
- use common\components\stringUtil;
- use Yii;
- use common\components\util;
- class GhsController extends BaseController
- {
- //供货商列表 ssh 2021.1.18
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $name = isset($get['name']) ? $get['name'] : '';
- $where = ['ownShopId' => $this->shopId];
- if (!empty($name)) {
- if (stringUtil::isLetter($name)) {
- $where['py'] = ['like', $name];
- } else {
- $where['name'] = ['like', $name];
- }
- }
- $list = GhsClass::getGhsList($where);
- util::success($list);
- }
- }
|