OrderController.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace business\controllers;
  3. use biz\order\services\OrderService;
  4. use Yii;
  5. use yii\data\Pagination;
  6. use yii\helpers\Json;
  7. use common\models\xhOrder;
  8. use common\models\xhOrderGoods;
  9. use common\components\util;
  10. use common\components\stringUtil;
  11. use common\components\weixinUtil;
  12. use common\services\xhOrderService;
  13. use common\services\xhGoodsService;
  14. use common\services\xhTMessageService;
  15. use common\services\xhUserService;
  16. use common\services\xhUserAlipayService;
  17. use common\components\page;
  18. use common\components\configDict;
  19. class OrderController extends BaseController
  20. {
  21. public function actionList()
  22. {
  23. $get = Yii::$app->request->get();
  24. //组建where
  25. $status = isset($get['status']) ? $get['status'] : 0;
  26. $search = isset($get['search']) ? $get['search'] : '';
  27. $where = ['merchantId' => $this->merchantId, 'status' => $status];
  28. if (!empty($search)) {
  29. if (stringUtil::isMobieNumber($search)) {
  30. $where['receiveMobile'] = $search;
  31. } else {
  32. $where['id'] = $search;
  33. }
  34. }
  35. $list = OrderService::getOrderList($where);
  36. util::success($list);
  37. }
  38. //发货管理 shish 2019.11.30
  39. public function actionSend()
  40. {
  41. }
  42. }