|
@@ -33,7 +33,7 @@ class UserLogLogic extends BaseLogic
|
|
|
$unionQuery = [];
|
|
$unionQuery = [];
|
|
|
foreach ($monthRange as $month){
|
|
foreach ($monthRange as $month){
|
|
|
$tableName = 'sdk_reg_log_' . $month;
|
|
$tableName = 'sdk_reg_log_' . $month;
|
|
|
- $unionQuery[] = $db->table($tableName)->field("uid,reg_time,imei,brand")->where($where)->whereRaw($whereRaw)->buildSql();
|
|
|
|
|
|
|
+ $unionQuery[] = $db->table($tableName)->where($where)->whereRaw($whereRaw)->buildSql();
|
|
|
}
|
|
}
|
|
|
$fullSql = "(" . implode(' UNION ALL ', $unionQuery) . ") as unTable";
|
|
$fullSql = "(" . implode(' UNION ALL ', $unionQuery) . ") as unTable";
|
|
|
|
|
|