|
|
@@ -58,12 +58,15 @@ class OrderItemClass extends BaseClass
|
|
|
|
|
|
//价格等信息
|
|
|
$product = ProductClass::computedPriceByItemInfo($product);
|
|
|
-
|
|
|
$orderSn = $info['orderSn'];
|
|
|
- OrderItemClass::replace($orderSn, $product);
|
|
|
-
|
|
|
+ self::deleteByCondition(['orderSn' => $orderSn]);
|
|
|
+ foreach ($product as $key => $val) {
|
|
|
+ $product[$key]['orderSn'] = $orderSn;
|
|
|
+ }
|
|
|
+ self::batchAdd($product);
|
|
|
+
|
|
|
//未发货前可以修改花材。未发货前未付款的总金额要变化,未发货前已付款的,只改变成本,成本超过总金额的,则不允许修改。 todo @lqh
|
|
|
//修改价格
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|