Browse Source

20220921 fix 後台匯出功能

LuluFJ.Ho 2 years ago
parent
commit
998d936b77

+ 4
- 4
app/Http/Services/Backend/DataManagement/SignupManagementService.php View File

74
         
74
         
75
         $res = $this->signupDb
75
         $res = $this->signupDb
76
             ->select('*');
76
             ->select('*');
77
-            
77
+        
78
         if ($keyword) {
78
         if ($keyword) {
79
             $res = $res->where(function($q) use ($keyword) {
79
             $res = $res->where(function($q) use ($keyword) {
80
                 $q->where('firstName', $keyword)
80
                 $q->where('firstName', $keyword)
96
                 ->where('createDate', '<', $createDateFinal);
96
                 ->where('createDate', '<', $createDateFinal);
97
         }
97
         }
98
 
98
 
99
-        $res = $this->signupDb
99
+        $result = $res
100
             ->get()
100
             ->get()
101
             ->toArray();
101
             ->toArray();
102
-        // \Log::info(print_r($res,true));
102
+        \Log::info(print_r($res,true));
103
 
103
 
104
         \Log::debug(print_r(DB::getQueryLog(), true));
104
         \Log::debug(print_r(DB::getQueryLog(), true));
105
 
105
 
106
         // 整理返回值並返回
106
         // 整理返回值並返回
107
-        return $res;
107
+        return $result;
108
     }
108
     }
109
 
109
 
110
 }
110
 }