更新
This commit is contained in:
parent
a1aead6426
commit
21ef569f3b
@ -114,7 +114,8 @@ class CloudWarehouse extends BaseController
|
|||||||
$count = Db::name('cloud_product')->where('street_code', $street_code)->where('status', 1)->count();
|
$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)
|
$select = Db::name('store_product')->whereIn('product_id', $cloud_product)->where($where)
|
||||||
->withAttr('merchant', function ($value, $data) {
|
->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) {
|
->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();
|
$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
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function town()
|
public function town()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user