|
|
@@ -6,6 +6,7 @@ use biz\stat\classes\StatItemClass;
|
|
|
use bizGhs\order\classes\OrderClass;
|
|
|
use bizGhs\order\classes\OrderItemClass;
|
|
|
use bizGhs\product\classes\ProductClass;
|
|
|
+use bizGhs\shop\classes\ShopAdminClass;
|
|
|
use common\components\arrayUtil;
|
|
|
use common\components\dateUtil;
|
|
|
use Yii;
|
|
|
@@ -120,6 +121,13 @@ class StatItemController extends BaseController
|
|
|
//花材销量 ssh 20211021
|
|
|
public function actionProfile()
|
|
|
{
|
|
|
+
|
|
|
+ //查看财务的权限
|
|
|
+ $lookMoney = ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
|
|
|
+ if ($lookMoney == 0) {
|
|
|
+ util::fail('没有权限查看');
|
|
|
+ }
|
|
|
+
|
|
|
$get = Yii::$app->request->get();
|
|
|
$where = [];
|
|
|
$where['shopId'] = $this->shopId;
|