|
|
@@ -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){
|