|
@@ -24,6 +24,7 @@ class StatIncomeClass extends BaseClass
|
|
|
$model = self::getByCondition($where, true);
|
|
$model = self::getByCondition($where, true);
|
|
|
if (empty($model)) {
|
|
if (empty($model)) {
|
|
|
$data = [
|
|
$data = [
|
|
|
|
|
+ 'shopId'=>$shopId,
|
|
|
'time' => $time,
|
|
'time' => $time,
|
|
|
'amount' => 0,
|
|
'amount' => 0,
|
|
|
'totalAmount' => $shop->totalIncome,
|
|
'totalAmount' => $shop->totalIncome,
|
|
@@ -41,4 +42,4 @@ class StatIncomeClass extends BaseClass
|
|
|
StatIncomeMonthClass::updateOrInsert($shop, $amount);
|
|
StatIncomeMonthClass::updateOrInsert($shop, $amount);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
|
+}
|