1.分销推广页我的推广店铺列表
This commit is contained in:
parent
a0a6d74f7f
commit
0281a15cf6
@ -234,7 +234,7 @@ 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
|
||||
and b.audit_status = 2 limit".$p.",".$size;
|
||||
and b.audit_status = 2 limit ".$p.",".$size;
|
||||
$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
|
||||
@ -244,7 +244,7 @@ class User extends Api
|
||||
}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
|
||||
and b.store_state = 1 limit".$p.",".$size;
|
||||
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
|
||||
a.first_leader = '.$user_id.' and a.disable = 0 and a.del = 0 and b.is_delete=0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user