|
|
@@ -9,6 +9,7 @@ use bizGhs\product\classes\ProductClass;
|
|
|
use bizGhs\shop\classes\ShopAdminClass;
|
|
|
use common\components\arrayUtil;
|
|
|
use common\components\dateUtil;
|
|
|
+use common\components\noticeUtil;
|
|
|
use Yii;
|
|
|
use common\components\util;
|
|
|
|
|
|
@@ -75,6 +76,10 @@ class StatItemController extends BaseController
|
|
|
|
|
|
$totalMl = bcadd($totalMl, $currentGross, 2);
|
|
|
|
|
|
+ if ($currentGross < 0) {
|
|
|
+ noticeUtil::push($item->id . ' 毛利是负的', '15280215347');
|
|
|
+ }
|
|
|
+
|
|
|
$stat[$productId]['productId'] = $productId;
|
|
|
$stat[$productId]['name'] = $name;
|
|
|
$stat[$productId]['py'] = $py;
|