|
|
|
@ -19,7 +19,7 @@ class CageModel extends Orm_Base{ |
|
|
|
|
//查询当前笼位一行显示几个 |
|
|
|
|
$cagemodel = new CageSetModel(); |
|
|
|
|
$shownum = $cagemodel->field('line_num')->where("c_user_id='{$params['uid']}'")->fRow(); |
|
|
|
|
$limmit = empty($shownum['line_num'])?20:$shownum['line_num']*5; |
|
|
|
|
$limmit = empty($shownum['line_num'])?20:$shownum['line_num']*4; |
|
|
|
|
$sql = "select id,number,color,strains,type from cage where c_user_id={$params['uid']}"; |
|
|
|
|
if(!empty($params['keyword'])){ |
|
|
|
|
$sql .=" where number like '%{$params['keyword']}%'"; |
|
|
|
|