|
@@ -114,8 +114,8 @@ class BonusController extends BaseController {
|
|
|
public function actionTeams() {
|
|
public function actionTeams() {
|
|
|
$userId = \Yii::$app->user->id;
|
|
$userId = \Yii::$app->user->id;
|
|
|
$period = Period::instance();
|
|
$period = Period::instance();
|
|
|
- $periodNum = $period->getNowPeriodNum();
|
|
|
|
|
- $month = $period->getNowYearMonth();
|
|
|
|
|
|
|
+ $periodNum = 108;
|
|
|
|
|
+ $month = '202212';
|
|
|
// 判断此业绩期是否已经完成生成了预计算业绩单,生成完毕才能看到
|
|
// 判断此业绩期是否已经完成生成了预计算业绩单,生成完毕才能看到
|
|
|
$isPerfed = Period::checkPerf($periodNum);
|
|
$isPerfed = Period::checkPerf($periodNum);
|
|
|
if (!$isPerfed) {
|
|
if (!$isPerfed) {
|
|
@@ -124,9 +124,9 @@ class BonusController extends BaseController {
|
|
|
// 判断当前时间,是否临近封期,否则隐藏
|
|
// 判断当前时间,是否临近封期,否则隐藏
|
|
|
$nowTs = time();
|
|
$nowTs = time();
|
|
|
$currentPeriodEnd = Period::getEndTime($periodNum);
|
|
$currentPeriodEnd = Period::getEndTime($periodNum);
|
|
|
- if ($nowTs + 432000 <= $currentPeriodEnd || $currentPeriodEnd < $nowTs || ($periodNum % 2)) {
|
|
|
|
|
- return static::notice(['user' => [],'team'=>[]]);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if ($nowTs + 432000 <= $currentPeriodEnd || $currentPeriodEnd < $nowTs || ($periodNum % 2)) {
|
|
|
|
|
+// return static::notice(['user' => [],'team'=>[]]);
|
|
|
|
|
+// }
|
|
|
$userInfo = User::getEnCodeInfo($userId);
|
|
$userInfo = User::getEnCodeInfo($userId);
|
|
|
$data = PerfMonth::fetchMonthPerf($month, $userId);
|
|
$data = PerfMonth::fetchMonthPerf($month, $userId);
|
|
|
$user[0] = [
|
|
$user[0] = [
|