Просмотр исходного кода

供货商 总订单,总收入

林琦海 5 лет назад
Родитель
Сommit
5bca6d3a3e
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app-ghs/controllers/OrderController.php

+ 4 - 0
app-ghs/controllers/OrderController.php

@@ -113,6 +113,10 @@ class OrderController extends BaseController
             ProductClass::valid($productList, $this->shopId);
             $post['product'] = $productList;
             $return = OrderClass::addOrder($post, $this->shop);
+            //总订单+1
+            \biz\shop\services\ShopService::totalOrderPlus($this->shopId);
+            //总收入
+            \biz\shop\services\ShopService::updateTotalIncome($this->shopId,$return['actPrice']);
             $transaction->commit();
             util::success($return);
         } catch (\Exception $e) {