1.分销推广页我的推广店铺列表
This commit is contained in:
parent
08d199e8b8
commit
b8c113a414
@ -241,7 +241,7 @@ class User extends Api
|
|||||||
// and b.audit_status = 2 group by a.first_leader";
|
// and b.audit_status = 2 group by a.first_leader";
|
||||||
$count = Db::name("shop_apply")
|
$count = Db::name("shop_apply")
|
||||||
->alias("a")
|
->alias("a")
|
||||||
->where("user","a.user_id = b.id","left")
|
->join("user","a.user_id = b.id","left")
|
||||||
->where("a.first_leader",$user_id)
|
->where("a.first_leader",$user_id)
|
||||||
->where("a.disable",0)
|
->where("a.disable",0)
|
||||||
->where("a.del",0)
|
->where("a.del",0)
|
||||||
@ -262,7 +262,7 @@ class User extends Api
|
|||||||
// $count = $count[0]['cont'];
|
// $count = $count[0]['cont'];
|
||||||
$count = Db::name("local_store")
|
$count = Db::name("local_store")
|
||||||
->alias("a")
|
->alias("a")
|
||||||
->where("user","a.user_id = b.id","left")
|
->join("user","a.user_id = b.id","left")
|
||||||
->where("a.first_leader",$user_id)
|
->where("a.first_leader",$user_id)
|
||||||
->where("a.disable",0)
|
->where("a.disable",0)
|
||||||
->where("a.del",0)
|
->where("a.del",0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user