From 8751bf4b876ce0ffe230076860c438863e90c5bd Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Thu, 6 Jun 2024 13:44:46 +0800 Subject: [PATCH] YS --- application/models/Cage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Cage.php b/application/models/Cage.php index 66d6797..e86b962 100644 --- a/application/models/Cage.php +++ b/application/models/Cage.php @@ -22,7 +22,7 @@ class CageModel extends Orm_Base{ $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 .=" and (number like '%{$params['keyword']}%' or strains_id like '%{$params['keyword']}%')"; + $sql .=" and (number like '%{$params['keyword']}%' or strains like '%{$params['keyword']}%')"; } if(!empty($params['order'])){ $sql .=" order by {$params['order']} desc";