| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace ghs\controllers;
- use bizGhs\shop\classes\ShopAdminClass;
- use bizGhs\stat\classes\StatCgClass;
- use Yii;
- use common\components\util;
- class StatCgController extends BaseController
- {
- public function actionProfit()
- {
- ini_set('memory_limit', '2045M');
- set_time_limit(0);
- //查看财务的权限
- $lookMoney = ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
- if ($lookMoney == 0) {
- //util::fail('无法查看');
- }
- $mainId = $this->mainId;
- $respond = StatCgClass::statCg($mainId);
- $list = $respond['itemList'] ?? [];
- $staffCg = $respond['staffCg'] ?? [];
- util::success(['list' => $list, 'staffCg' => $staffCg]);
- }
- //采购人业绩 ssh 2024412
- public function actionYj()
- {
- ini_set('memory_limit', '2045M');
- set_time_limit(0);
- //查看财务的权限
- $lookMoney = ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
- if ($lookMoney == 0) {
- //util::fail('无法查看');
- }
- $mainId = $this->mainId;
- $respond = StatCgClass::statCgYj($mainId);
- $staffCg = $respond['staffCg'] ?? [];
- util::success(['staffCg' => $staffCg]);
- }
- }
|