Commit 72afea1d authored by zhz's avatar zhz

stc

parent 6ac8d04a
......@@ -26,8 +26,9 @@ class StoreGoodsClassModel extends \DAO\AbstractModel {
}
public function getList($where,$field,$order = true){
$this->setDb($this->dbName);
$where['stc_state'] = 1;
if($order){
return $this->db->select($field)->from($this->_tableName)->where($where)->order('stc_sort','DESC')->fetchAll();
return $this->db->select($field)->from($this->_tableName)->where($where)->order('stc_sort','ASC')->fetchAll();
}
return $this->db->select($field)->from($this->_tableName)->where($where)->fetchAll();
}
......
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