1.分销推广页我的推广店铺列表
This commit is contained in:
parent
557fc42d83
commit
8791a0a365
@ -229,13 +229,14 @@ class User extends Api
|
|||||||
$size = $this->request->get('page_size', $this->page_size);
|
$size = $this->request->get('page_size', $this->page_size);
|
||||||
$type = $this->request->get('type');
|
$type = $this->request->get('type');
|
||||||
$user_id = $this->user_id;
|
$user_id = $this->user_id;
|
||||||
$page = $page-1;
|
$pa = $page-1;
|
||||||
$p = $page*$size;
|
$p = $pa*$size;
|
||||||
//查询条件
|
//查询条件
|
||||||
if($type == 1){
|
if($type == 1){
|
||||||
$sql = "SELECT * FROM ls_user a,ls_shop_apply b WHERE a.id = b.user_id and
|
$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;
|
and b.audit_status = 2 limit ".$p.",".$size;
|
||||||
|
var_dump($sql);
|
||||||
$lists = Db::query($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
|
// $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
|
// a.first_leader = '.$user_id.' and a.disable = 0 and a.del = 0 and b.del=0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user