| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace ghs\controllers;
- use biz\hb\classes\HbClass;
- use common\components\util;
- use Yii;
- class HbController extends BaseController
- {
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $where = [];
- $status = $get['status'] ?? 0;
- if (!empty($status)) {
- $where['status'] = $status;
- }
- $where['ghsShopId'] = $this->shopId;
- $py = $get['py'] ?? '';
- if (!empty($py)) {
- $where['customPy'] = ['like', $py];
- }
- $list = HbClass::getHbList($where);
- util::success($list);
- }
- }
|