wanggangtao 5 년 전
부모
커밋
c74ac1830b
3개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 1
      data/get_stock_static_data.php
  2. 0 1
      lib/common/mypdo.class.php
  3. 2 3
      lib/table/table_stock.class.php

+ 0 - 1
data/get_stock_static_data.php

@@ -8,7 +8,6 @@
  */
 require('../init.php');
 
-
 $codeList=Stock::getStockCodeList();//获取所有股票代码
 if (empty($codeList))
 {

+ 0 - 1
lib/common/mypdo.class.php

@@ -231,7 +231,6 @@ class MyPdo {
 			$wheres[] = $key.'='.$this->sql_check_input($val);
 		}
 		$wheres_str = implode(' and ', $wheres);
-
 		$sql .= ' where '.$wheres_str;
 		try {
 			$num = $this->pdo->exec($sql);

+ 2 - 3
lib/table/table_stock.class.php

@@ -63,7 +63,6 @@ class Table_stock extends Table {
     {
         $params = array();
         foreach ($attrs as $key => $value) {
-            //$type = self::getTypeByAttr($key);
             $params[$this->table_name.'_'.$key] = array('string', $value);
 
         }
@@ -82,10 +81,10 @@ class Table_stock extends Table {
      * @return array
      * 获取代码列表
      */
-    public function getStockCodeList($filter = array(), $count = 0, $page = 0, $pagesize = 0){
+    public function getStockCodeList(){
 
         $where="where 1=1";
-        $sql = "select "."`stock_code`". "from ". $this->table_fullname ." $where order by ".$this->table_id." desc";
+        $sql = "select "."`stock_code`". "from ". $this->table_fullname ." $where order by ".$this->table_id." asc";
         $rs  = $this->pdo->sqlQuery($sql);
         $r  = array();
         if($rs){