更新查询转售商品列表

This commit is contained in:
yaooo 2023-08-23 09:58:34 +08:00
parent aeed28dd89
commit 0c6cfd42f0

View File

@ -470,7 +470,7 @@ class Community extends BaseController
{
[$page, $limit] = $this->getPage();
$status = $this->request->param('status');
$queryBuilder = Db::name('community')->alias('c')->leftJoin('resale r','c.community_id = r.community_id')->where('c.is_del', 0)->where('c.uid', $this->request->uid());
$queryBuilder = Db::name('community')->alias('c')->leftJoin('resale r','c.community_id = r.community_id')->where('c.is_type', 3)->where('c.is_del', 0)->where('c.uid', $this->request->uid());
// 在售商品
if ($status == 1) {
$queryBuilder->where('c.status', 1)->where('c.is_show', 1)->where(function ($query) {