|
|
@@ -73,7 +73,7 @@ class StatItemController extends BaseController
|
|
|
if (empty($list)) {
|
|
|
util::success(['list' => []]);
|
|
|
}
|
|
|
- $productInfo = ProductClass::getAllByCondition(['mainId' => $this->mainId], null, 'id,name,py', 'id');
|
|
|
+ $productInfo = ProductClass::getAllByCondition(['mainId' => $this->mainId], null, 'id,name,py,cgStaffId', 'id');
|
|
|
$stat = [];
|
|
|
$totalAmount = 0;
|
|
|
$totalNum = 0;
|
|
|
@@ -94,8 +94,6 @@ class StatItemController extends BaseController
|
|
|
|
|
|
if (!empty($staffId)) {
|
|
|
$currentCgStaffId = $productInfo[$productId]['cgStaffId'] ?? 0;
|
|
|
- print_r($productInfo);die;
|
|
|
- echo $staffId.' '.$currentCgStaffId;die;
|
|
|
if ($staffId != $currentCgStaffId) {
|
|
|
continue;
|
|
|
}
|