diff --git a/application/models/NewSquirrel.php b/application/models/NewSquirrel.php index d688c75..ae54dcf 100644 --- a/application/models/NewSquirrel.php +++ b/application/models/NewSquirrel.php @@ -41,7 +41,7 @@ class NewSquirrelModel extends Orm_Base{ $val['cage'] = $CageModel->field('number')->where("id={$val['cage']}")->fRow()['number']; $val['icon'] = Yaf_Registry::get("config")->web->url->img."/public/icon/small.png"; } - $data['j'] = $SquirrelModel->field('id,number,birthday,father,mother,strains_id as strains,gene,remark,cage,sex')->where("type=2 {$params['where']}")->fList(); + $data['j'] = $SquirrelModel->field('id,number,birthday,father,mother,strains_id as strains,gene,remark,cage,sex')->where("type=2 and is_delete=0 {$params['where']}")->fList(); foreach($data['j'] as $key => &$va){ $va['sex'] = $sex[$va['sex']]; $va['cage'] = $CageModel->field('number')->where("id={$va['cage']}")->fRow()['number'];