shish 1 год назад
Родитель
Сommit
80b15840ba
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      app-ghs/controllers/StatItemController.php

+ 1 - 3
app-ghs/controllers/StatItemController.php

@@ -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;
                         }