WIN-2308041133\Administrator 2 주 전
부모
커밋
fb3d4d9ab4
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/models/system/SystemUserTask.php

+ 2 - 0
app/models/system/SystemUserTask.php

@@ -203,8 +203,10 @@ class SystemUserTask extends BaseModel
         $max = 0;
         $max = 0;
         $team_achievement=0;
         $team_achievement=0;
         if (!empty($directSubordinateUids)) {
         if (!empty($directSubordinateUids)) {
+            @file_put_contents('quanju.txt', json_encode($directSubordinateUids) . "-直属下级uid\r\n", 8);
             foreach ($directSubordinateUids as $key => $value){
             foreach ($directSubordinateUids as $key => $value){
                 $teamUids = UserController::getAllTeamMembers($value);  //获取直推下级的团队所有成员
                 $teamUids = UserController::getAllTeamMembers($value);  //获取直推下级的团队所有成员
+                @file_put_contents('quanju.txt', json_encode($teamUids) . "-各直属下级团队uid\r\n", 8);
                 if (!empty($teamUids)) {
                 if (!empty($teamUids)) {
                     $personal_achievement = User::whereIn('uid', $teamUids)
                     $personal_achievement = User::whereIn('uid', $teamUids)
                         ->sum('achievement');
                         ->sum('achievement');