@ -35,11 +35,11 @@ class SquirrelModel extends Orm_Base{
//获取仓鼠信息
$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();
foreach($data['slist'] as $key => &$val){
$father = $this->getOneInfo($val['father']);
$mother = $this->getOneInfo($val['mother']);
// $father = $this->getOneInfo($val['father']);
// $mother = $this->getOneInfo($val['mother']);
$val['sex'] = $val['sex']=1?'公':'母';
$val['father'] = empty($father)?$val['father']:$father['number'];
$val['mother'] = empty($mother)?$val['mother']:$mother['number'];
// $val['father'] = empty($father)?$val['father']:$father['number'];
// $val['mother'] = empty($mother)?$val['mother']:$mother['number'];
//获取笼位号
$val['cage'] =$cageModel->getOneInfo($val['cage'])['number'];
}