|
@@ -31,9 +31,12 @@ class Shop extends Controller
|
|
|
public function index()
|
|
|
{
|
|
|
$this->title = '列表';
|
|
|
- $query = $this->_query($this->table)->where('is_deleted',0);
|
|
|
- $query->like('name');
|
|
|
- $query->order(' sort desc , id desc')->page();
|
|
|
+ $query = $this->_query($this->table)
|
|
|
+ ->alias('s')
|
|
|
+ ->field('s.*,m.name user_name ,m.headimg')
|
|
|
+ ->where('s.is_deleted',0)
|
|
|
+ ->leftJoin('store_member m','m.id = s.user_id');
|
|
|
+ $query->order(' s.sort desc , s.id desc')->page();
|
|
|
}
|
|
|
|
|
|
/**
|