Przeglądaj źródła

shopId 区分批发与零售的,请注意

shizhongqi 4 lat temu
rodzic
commit
be60026568
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      app-ghs/controllers/ConsoleController.php

+ 2 - 0
app-ghs/controllers/ConsoleController.php

@@ -58,6 +58,7 @@ class ConsoleController extends BaseController
         $ghsActIncome = OrderClass::sum($where, 'actPrice'); // 批发今日实收总数
         Yii::info('批发今日收入总笔数:' . $ghsOnlineCount . ', 批发今日实收总数:' . $ghsActIncome);
 
+        $where['shopId'] = $this->shop['lsShopId'];
         unset($where['debt']);
         unset($where['debtPrice']);
         $hdActualCount = HdOrderClass::getCount($where); // 花店今日收入总笔数
@@ -77,6 +78,7 @@ class ConsoleController extends BaseController
         $ghsCashIncome = OrderClass::sum($where, 'actPrice'); // 批发今日现金金额总数
         Yii::info('批发今日现金总笔数:' . $ghsCashCount . ', 批发今日现金金额总数:' . $ghsCashIncome);
 
+        $where['shopId'] = $this->shop['lsShopId'];
         unset($where['debt']);
         unset($where['debtPrice']);
         $hdCashCount = HdOrderClass::getCount($where); // 花店今日现金总笔数