1.本地生活订单列表

This commit is contained in:
xucong 2024-09-16 22:55:33 +08:00
parent 374a902a3d
commit fce9d3407b

@ -229,7 +229,9 @@ class LocalStoreLogic extends Logic
$goods = Db::name("local_store_goods")->where("id",$value['goods_id'])->find();
$list[$key]['goods_msg'] = $goods;
}
$count = LocalGoodsStore::where(['user_id' => $post['user_id'], 'state' => 3])->count();
$count = LocalGoodsStore::where(['user_id' => $post['user_id']])
->where("state <> 3")
->count();
$more = is_more($count, $post['page_no'], $post['page_size']); //是否有下一页
@ -259,7 +261,9 @@ class LocalStoreLogic extends Logic
$goods = Db::name("local_store_goods")->where("id",$value['goods_id'])->find();
$list[$key]['goods_msg'] = $goods;
}
$count = LocalGoodsStore::where(['lstore_id' => $post['lstore_id'], 'state' => 3])->count();
$count = LocalGoodsStore::where(['lstore_id' => $post['lstore_id']])
->where("state <> 3")
->count();
$more = is_more($count, $post['page_no'], $post['page_size']); //是否有下一页