From 944c73cef69397bcd61ce738f2361df76b5866f2 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Mon, 19 Aug 2024 17:32:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=88=86=E9=94=80=E6=8E=A8=E5=B9=BF=E9=A1=B5?= =?UTF-8?q?=E6=88=91=E7=9A=84=E6=8E=A8=E5=B9=BF=E5=BA=97=E9=93=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/User.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/controller/User.php b/app/api/controller/User.php index d97a2a92..00fdce30 100755 --- a/app/api/controller/User.php +++ b/app/api/controller/User.php @@ -234,9 +234,9 @@ class User extends Api //查询条件 if($type == 1){ $sql = "SELECT * FROM ls_user a,ls_shop_apply b WHERE a.id = b.user_id and - a.first_leader = '.$user_id.' and a.disable = 0 and a.del = 0 and b.del=0 + a.first_leader = $user_id and a.disable = 0 and a.del = 0 and b.del=0 and b.audit_status = 2 limit ".$p.",".$size; - var_dump($sql); +// var_dump($sql); $lists = Db::query($sql); // $sql = "SELECT count(*) as cont FROM ls_user a,ls_shop_apply b WHERE a.id = b.user_id and // a.first_leader = '.$user_id.' and a.disable = 0 and a.del = 0 and b.del=0 @@ -254,7 +254,7 @@ class User extends Api // $count = $count[0]['cont']; }else{ $sql = "SELECT * FROM ls_user a,ls_local_store b WHERE a.id = b.user_id and - a.first_leader = '.$user_id.' and a.disable = 0 and a.del = 0 and b.is_delete=0 + a.first_leader = $user_id and a.disable = 0 and a.del = 0 and b.is_delete=0 and b.store_state = 1 limit ".$p.",".$size; $lists = Db::query($sql); // $sql = "SELECT count(*) as cont FROM ls_user a,ls_local_store b WHERE a.id = b.user_id and