1.本地生活订单列表

This commit is contained in:
xucong 2024-09-17 00:19:33 +08:00
parent a5d7340098
commit 8c00127ae2

@ -218,7 +218,7 @@ class LocalStoreLogic extends Logic
if(!empty($post['state'])){
$s = "state= ".$post['state']."";
}
$list = LocalGoodsStore::where(['user_id' => $post['user_id']])
$list = LocalGoodsStore::where('user_id',$post['user_id'])
->where($s)
->where("state <> 3")
->page($post['page_no'], $post['page_size'])
@ -236,7 +236,7 @@ class LocalStoreLogic extends Logic
$local = Db::name("local_store")->field("shopName,shopLogo")->where("lstore_id",$value['lstore_id'])->find();
$list[$key]['local_msg'] = $local;
}
$count = LocalGoodsStore::where(['user_id' => $post['user_id']])
$count = LocalGoodsStore::where('user_id',$post['user_id'])
->where($s)
->where("state <> 3")
->count();
@ -258,7 +258,7 @@ class LocalStoreLogic extends Logic
if(!empty($post['state'])){
$s = "state= ".$post['state']."";
}
$list = LocalGoodsStore::where(['lstore_id' => $post['lstore_id']])
$list = LocalGoodsStore::where('lstore_id',$post['lstore_id'])
->where($s)
->where("state <> 3")
->page($post['page_no'], $post['page_size'])
@ -276,7 +276,7 @@ class LocalStoreLogic extends Logic
$local = Db::name("local_store")->field("shopName,shopLogo")->where("lstore_id",$value['lstore_id'])->find();
$list[$key]['local_msg'] = $local;
}
$count = LocalGoodsStore::where(['lstore_id' => $post['lstore_id']])
$count = LocalGoodsStore::where('lstore_id',$post['lstore_id'])
->where($s)
->where("state <> 3")
->count();