@@ -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;
}