shish 1 年間 前
コミット
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)) {
         if (empty($list)) {
             util::success(['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 = [];
         $stat = [];
         $totalAmount = 0;
         $totalAmount = 0;
         $totalNum = 0;
         $totalNum = 0;
@@ -94,8 +94,6 @@ class StatItemController extends BaseController
 
 
                     if (!empty($staffId)) {
                     if (!empty($staffId)) {
                         $currentCgStaffId = $productInfo[$productId]['cgStaffId'] ?? 0;
                         $currentCgStaffId = $productInfo[$productId]['cgStaffId'] ?? 0;
-                        print_r($productInfo);die;
-                        echo $staffId.' '.$currentCgStaffId;die;
                         if ($staffId != $currentCgStaffId) {
                         if ($staffId != $currentCgStaffId) {
                             continue;
                             continue;
                         }
                         }