| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace admin\controllers;
- use biz\order\services\OrderService;
- use Yii;
- use yii\data\Pagination;
- use yii\helpers\Json;
- use common\models\xhOrder;
- use common\models\xhOrderGoods;
- use common\components\util;
- use common\components\stringUtil;
- use common\components\weixinUtil;
- use common\services\xhOrderService;
- use common\services\xhGoodsService;
- use common\services\xhTMessageService;
- use common\services\xhUserService;
- use common\services\xhUserAlipayService;
- use common\components\page;
- use common\components\configDict;
- class OrderController extends BaseController
- {
-
- public $enableCsrfValidation = false;
-
- public function actionList()
- {
- $get = Yii::$app->request->get();
-
- //组建where
- $status = isset($get['status']) ? $get['status'] : 0;
- $search = isset($get['search']) ? $get['search'] : '';
- $where = ['merchantId' => $this->merchantId, 'status' => $status];
- if (!empty($search)) {
- if (stringUtil::isMobieNumber($search)) {
- $where['receiveMobile'] = $search;
- } else {
- $where['id'] = $search;
- }
- }
-
- //传递page pageSize参数
- $page = isset($get['page']) ? $get['page'] : 1;
- Yii::$app->params['page'] = $page;
-
- $list = OrderService::getList('*', $where, 'addTime DESC');
- util::success($list);
- }
-
- }
|