Procházet zdrojové kódy

Merge branch 'master' of https://git.bjtdba.com/shop/php

sunxbiao před 1 rokem
rodič
revize
b3fb8f33b7

+ 12 - 0
app/common/repositories/store/order/StoreOrderRepository.php

@@ -5000,6 +5000,18 @@ class StoreOrderRepository extends BaseRepository
5000 5000
      */
5001 5001
     public function merchantGetList(array $where, $page, $limit, $is_excel = 0)
5002 5002
     {
5003
+        if (!empty($where['zero_line_uid'])) {
5004
+            $sql = "select getUserLevelId({$where['zero_line_uid']}) as uids";
5005
+            //\think\facade\Log::info("lplpDB".$sql);
5006
+            try {
5007
+                $spread_user_list = Db::query($sql);
5008
+            } catch (\Exception $exception) {
5009
+                $spread_user_list = '';
5010
+            }
5011
+            $spread_user_list = explode(",", trim($spread_user_list[0]['uids'], '$,'));
5012
+            $where['uid'] = $spread_user_list;
5013
+        }
5014
+        unset($where['zero_line_uid']);
5003 5015
         $status = $where['status'];
5004 5016
         unset($where['status']);
5005 5017
         $query_search = $this->dao->search($where)

+ 1 - 1
app/controller/admin/order/Order.php

@@ -63,7 +63,7 @@ class Order extends BaseController
63 63
     public function getAllList()
64 64
     {
65 65
         [$page, $limit] = $this->getPage();
66
-        $where = $this->request->params(['type', 'date', 'mer_id','keywords','status','username','order_sn','order_ids','paid']);
66
+        $where = $this->request->params(['type', 'date', 'mer_id','keywords','status','username','order_sn','order_ids','paid', 'zero_line_uid']);
67 67
 
68 68
         $pay_type=$this->request->param('pay_type');
69 69
         if($pay_type==1 || $pay_type==4){