|
|
|
@ -20,7 +20,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']*4; |
|
|
|
|
$sql = "select id,number,color,strains,type from cage where c_user_id={$params['uid']}"; |
|
|
|
|
$sql = "select id,number,color,strains,type from cage where c_user_id={$params['uid']} and is_delete=0"; |
|
|
|
|
if(!empty($params['keyword'])){ |
|
|
|
|
$sql .=" and (number like '%{$params['keyword']}%' or strains like '%{$params['keyword']}%')"; |
|
|
|
|
} |
|
|
|
|