Bladeren bron

出入库统计

shish 5 jaren geleden
bovenliggende
commit
23f2ac2363
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      biz/stat/classes/StatStockOutClass.php

+ 2 - 1
biz/stat/classes/StatStockOutClass.php

@@ -37,7 +37,8 @@ class StatStockOutClass extends BaseClass
     {
         $today = date("Ymd");
         $shopId = $shop->id;
-        $out = self::getByCondition(['time' => $today, 'shopId' => $shopId]);
+        $sjId = $shop->sjId;
+        $out = self::getByCondition(['sjId' => $sjId, 'shopId' => $shopId, 'time' => $today], true);
         return $out->amount ?? 0;
     }