|
|
@@ -146,14 +146,15 @@ class BonusController extends BaseController {
|
|
|
'total_perf' => 0 // 合计业绩
|
|
|
];
|
|
|
if (!empty($data)) {
|
|
|
- $user[0]['user_perf'] = Tool::formatPreparePerf($data['PV_PCS']);
|
|
|
- $user[0]['team_perf'] = Tool::formatPreparePerf($data['PV_PSS']);
|
|
|
- $user[0]['total_perf'] = Tool::formatPreparePerf($data['PV_PCS']+$data['PV_PSS']);
|
|
|
- $userCheck = PerfMonthPrepare::checkPrepareStatus($user[0]['total_perf']);
|
|
|
- if ($userCheck) {
|
|
|
- $user[0]['perf_status'] = '1';
|
|
|
- $user[0]['perf_status_name'] = '达标';
|
|
|
- }
|
|
|
+ // 调整个人合格了,依旧不显示业绩
|
|
|
+ $userCheck = PerfMonthPrepare::checkPrepareStatus($data['PV_PCS']+$data['PV_PSS']);
|
|
|
+ $user[0]['user_perf'] = $userCheck ? '' : Tool::formatPreparePerf($data['PV_PCS']);
|
|
|
+ $user[0]['team_perf'] = $userCheck ? '' : Tool::formatPreparePerf($data['PV_PSS']);
|
|
|
+ $user[0]['total_perf'] = $userCheck ? '' : Tool::formatPreparePerf($data['PV_PCS']+$data['PV_PSS']);
|
|
|
+ $user[0]['perf_status'] = $userCheck ? '' : $user[0]['perf_status'];
|
|
|
+ $user[0]['perf_status_name'] = $userCheck ? '达标' : $user[0]['perf_status_name'];
|
|
|
+ $user[0]['number'] = $userCheck ? '' : $userInfo['USER_NAME'];
|
|
|
+ $user[0]['name'] = $userCheck ? '' : $userInfo['REAL_NAME'];
|
|
|
}
|
|
|
$teamInfo = [];
|
|
|
// 查询此用户的推荐(开拓)团队一级信息
|