更新调货详情
This commit is contained in:
parent
d43c78a27b
commit
b52dea68f2
@ -285,9 +285,11 @@ class CommunityRepository extends BaseRepository
|
||||
$data['total_price'] = '0';
|
||||
foreach ($data['resale'] as $k=>$value) {
|
||||
$data['total_price'] = bcadd($data['total_price'], bcmul($value['price'], $value['number'], 2), 2);
|
||||
$data['resale'][$k]['attr'] = [];
|
||||
$attrInfo = Db::name('StoreProduct')->alias('sp')->leftJoin('StoreProductAttrValue sv','sp.product_id = sv.product_id')->where('sv.unique', $value['product_attr_unique'])->field('sv.detail, sv.sku, sv.sales, sp.store_name, sp.image')->find();
|
||||
$data['resale'][$k]['attr'] = $attrInfo;
|
||||
$data['resale'][$k]['sku'] = $attrInfo['sku'] ?? '';
|
||||
$data['resale'][$k]['sales'] = $attrInfo['sales'] ?? 0;
|
||||
$data['resale'][$k]['store_name'] = $attrInfo['store_name'] ?? '';
|
||||
$data['resale'][$k]['image'] = $attrInfo['image'] ?? '';
|
||||
}
|
||||
$data['mer_avatar'] = '';
|
||||
$data['mer_name'] = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user