@ -30,8 +30,18 @@ class SquirrelModel extends Orm_Base{
);
);
public $pk = 'id';
public $pk = 'id';
public function getModelList($params){
public function getModelList($params){
$cageModel = new CageModel();
//获取仓鼠信息
//获取仓鼠信息
$data['slist']=$this->field('*')->where("is_delete=0 and is_kill=0 {$params['where']}")->fList();
$data['slist']=$this->field('id,number,sex,birthday,father,mother,strains_id as strains,gene,hair_color,cage,remark')->where("is_delete=0 and is_kill=0 {$params['where']}")->fList();