Commit 9eff9888 authored by christ's avatar christ

master

parent a7afd93a
......@@ -74,7 +74,7 @@ class GoodsModel extends \DAO\AbstractModel {
public function getList($where,$field){
$this->setDb();
return $this->db->select($field)->from($this->_tableName)->where($where)->fetchAll();
return $this->db->select($field)->from($this->_tableName)->where($where)->order(array('goods_storage'=>'desc'))->fetchAll();
}
public function getListGroup($where,$field,$groupField){
$this->setDb($this->dbName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment