@ -34,12 +34,13 @@ class SquirrelModel extends Orm_Base{
);
);
public $pk = 'id';
public $pk = 'id';
public function getModelList($params){
public function getModelList($params){
$sex = array("1"=>"雄","2"=>"雌","0"=>"其他");
$cageModel = new CageModel();
$cageModel = new CageModel();
$NewSquirrel = new NewSquirrelModel();
$NewSquirrel = new NewSquirrelModel();
//获取仓鼠信息
//获取仓鼠信息
$data['slist']=$this->field('id,number,sex,birthday,father,mother,strains_id as strains,gene,hair_color,cage,remark')->where("is_delete=0 and type=1 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 type=1 and is_kill=0 {$params['where']}")->fList();