This commit is contained in:
mkm 2023-11-05 16:31:10 +08:00
parent a1aead6426
commit 21ef569f3b

View File

@ -114,7 +114,8 @@ class CloudWarehouse extends BaseController
$count = Db::name('cloud_product')->where('street_code', $street_code)->where('status', 1)->count();
$select = Db::name('store_product')->whereIn('product_id', $cloud_product)->where($where)
->withAttr('merchant', function ($value, $data) {
return Db::name('merchant')->where('mer_id', $data['mer_id'])->field('mer_id,mer_name')->find();
$find= Db::name('merchant')->where('mer_id', $data['mer_id'])->field('mer_id,mer_name')->find();
return $find;
})
->withAttr('sku', function ($value, $data) {
$find = Db::name('store_product_attr_value')->where('mer_id', $data['mer_id'])->where('product_id', $data['product_id'])->find();
@ -126,7 +127,7 @@ class CloudWarehouse extends BaseController
}
/**
* 指定类型的云仓商品列表
* 镇级供应链列表
* @return mixed
*/
public function town()