فهرست منبع

feat: AE: 团队查询数据不显示

kevin 1 سال پیش
والد
کامیت
5084d0d452
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      frontendApi/modules/v1/controllers/BonusController.php

+ 2 - 5
frontendApi/modules/v1/controllers/BonusController.php

@@ -120,8 +120,6 @@ class BonusController extends BaseController {
 
         $userInfo = User::getEnCodeInfo($userId);
         $data = PerfMonth::fetchMonthPerf($month, $userId);
-
-        LoggerTool::debug(json_encode(['actionTeams-2', $data, $month, $userId]));
         $user[0] = [
             'number' => $userInfo['USER_NAME'],
             'name' => $userInfo['REAL_NAME'],
@@ -131,10 +129,9 @@ class BonusController extends BaseController {
             'perf_status' => '0', // 0  未达标  1为已达标
             'perf_status_name' => 'Fail',
         ];
-        if (!empty($data)) {
-            LoggerTool::debug(json_encode(['actionTeams-3', $data]));
 
-            $userCheck = PerfMonth::checkStatus($data['PV_PCS']+$data['PV_PSS']);
+        if (!empty($data)) {
+            $userCheck = PerfMonth::checkStatus($data['PV_PCS'] + $data['PV_PSS']);
             $user[0]['user_perf'] = $data['PV_PCS'];
             $user[0]['team_perf'] = $data['PV_PSS'];
             $user[0]['total_perf'] = $data['PV_PCS']+$data['PV_PSS'];