PC-202304251453\Administrator 5 달 전
부모
커밋
85db532d93

+ 4 - 2
app/v1/logic/tool/dataReport/BaseTotalDayDataReportLogic.php

@@ -8,7 +8,9 @@ use support\think\Db;
 
 class BaseTotalDayDataReportLogic extends BaseDataReportLogic
 {
-    protected string $table = "base_total_day";
+    protected string $baseTable = "base_total_day";
+
+    protected string $table = "";
 
     protected string $group = 'game_id, agent_id, site_id, tdate';
 
@@ -73,7 +75,7 @@ class BaseTotalDayDataReportLogic extends BaseDataReportLogic
 
     protected function initStart(): void
     {
-        $this->table = $this->table . "_" . date('Y', strtotime($this->date));
+        $this->table = $this->baseTable . "_" . date('Y', strtotime($this->date));
 
         // 重置数据
         $this->data = [];

+ 5 - 3
app/v1/logic/tool/dataReport/BaseTotalHourDataReportLogic.php

@@ -8,8 +8,10 @@ use support\think\Db;
 
 class BaseTotalHourDataReportLogic extends BaseDataReportLogic
 {
-    protected string $table = "base_total_hour";
-    
+    protected string $baseTable = "base_total_hour";
+
+    protected string $table = "";
+
     protected string $group = 'game_id, agent_id, site_id, tdate, thour';
 
     protected array $data;
@@ -71,7 +73,7 @@ class BaseTotalHourDataReportLogic extends BaseDataReportLogic
 
     protected function initStart(): void
     {
-        $this->table = $this->table . "_" . date('Ym', strtotime($this->date));
+        $this->table = $this->baseTable . "_" . date('Ym', strtotime($this->date));
 
         // 重置数据
         $this->data = [];

+ 4 - 2
app/v1/logic/tool/dataReport/BasicActiveDayDataReportLogic.php

@@ -8,7 +8,9 @@ use support\think\Db;
 
 class BasicActiveDayDataReportLogic extends BaseDataReportLogic
 {
-    protected string $table = "basic_active_day";
+    protected string $baseTable = "basic_active_day";
+
+    protected string $table = "";
 
     protected string $group = 'game_id, agent_id, site_id, tdate, active';
 
@@ -73,7 +75,7 @@ class BasicActiveDayDataReportLogic extends BaseDataReportLogic
 
     protected function initStart(): void
     {
-        $this->table = $this->table . "_" . date('Y', strtotime($this->date));
+        $this->table = $this->baseTable . "_" . date('Y', strtotime($this->date));
 
         // 重置数据
         $this->data = [];

+ 4 - 2
app/v1/logic/tool/dataReport/GameRegPayDayDataReportLogic.php

@@ -8,7 +8,9 @@ use support\think\Db;
 
 class GameRegPayDayDataReportLogic extends BaseDataReportLogic
 {
-    protected string $table = "game_reg_pay_day";
+    protected string $baseTable = "game_reg_pay_day";
+
+    protected string $table = "";
 
     protected string $group = 'game_id, agent_id, site_id, reg_date, pay_date';
 
@@ -61,7 +63,7 @@ class GameRegPayDayDataReportLogic extends BaseDataReportLogic
 
     protected function initStart(): void
     {
-        $this->table = $this->table . "_" . date('Y', strtotime($this->date));
+        $this->table = $this->baseTable . "_" . date('Y', strtotime($this->date));
         // 重置数据
         $this->data = [];