diff --git a/webapp/controller/TempToolsController.class.php b/webapp/controller/TempToolsController.class.php index 9a64f14b..20a43e48 100644 --- a/webapp/controller/TempToolsController.class.php +++ b/webapp/controller/TempToolsController.class.php @@ -180,6 +180,8 @@ class TempToolsController extends BaseController { $this->exportData1(); } else if($type == 2) { $this->exportData2(); + } else if($type == 3) { + $this->exportData3(); } } @@ -226,4 +228,28 @@ class TempToolsController extends BaseController { } } + public function exportData3() + { + $type = getReqVal('type', ''); + $cond = getReqVal('cond', 0); + $accounts = array(); + $conn = myself()->_getMysql(''); + { + $rows = $conn->execQuery( + 'SELECT * FROM t_dyndata WHERE x=:x AND y=:y', + array( + ':x' => TN_ACTIVE, + ':y' => 0, + ) + ); + echo 'account_id' . ",>=10,>=30,>\n"; + foreach ($rows as $row) { + $channel = phpcommon\extractChannel($row['account_id']); + if ($channel == 6516) { + echo $row['account_id'] . "\n"; + } + } + } + } + }