|
@@ -37,7 +37,8 @@ class StatStockOutClass extends BaseClass
|
|
|
{
|
|
{
|
|
|
$today = date("Ymd");
|
|
$today = date("Ymd");
|
|
|
$shopId = $shop->id;
|
|
$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;
|
|
return $out->amount ?? 0;
|
|
|
}
|
|
}
|
|
|
|
|
|