HbController.php 612 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace ghs\controllers;
  3. use biz\hb\classes\HbClass;
  4. use common\components\util;
  5. use Yii;
  6. class HbController extends BaseController
  7. {
  8. public function actionList()
  9. {
  10. $get = Yii::$app->request->get();
  11. $where = [];
  12. $status = $get['status'] ?? 0;
  13. if (!empty($status)) {
  14. $where['status'] = $status;
  15. }
  16. $where['ghsShopId'] = $this->shopId;
  17. $py = $get['py'] ?? '';
  18. if (!empty($py)) {
  19. $where['customPy'] = ['like', $py];
  20. }
  21. $list = HbClass::getHbList($where);
  22. util::success($list);
  23. }
  24. }