|
|
@@ -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'];
|