|
|
@@ -57,7 +57,7 @@ class OrderItemClass extends BaseClass
|
|
|
$ptItemId = $info['itemId'] ?? 0;
|
|
|
$current['itemId'] = $ptItemId;
|
|
|
$current['productId'] = $productId;
|
|
|
- $classId = $info['classId'] ?? 0
|
|
|
+ $classId = $info['classId'] ?? 0;
|
|
|
$current['classId'] = $classId;
|
|
|
$current['variety'] = $info['variety'] ?? 0;
|
|
|
$current['shopId'] = $info['shopId'] ?? 0;
|
|
|
@@ -73,7 +73,7 @@ class OrderItemClass extends BaseClass
|
|
|
$current['bigNum'] = $num;
|
|
|
$current['preNum'] = $num;
|
|
|
$current['preBigNum'] = $num;
|
|
|
- $current['ratio'] = $info['ratio'] ?? 20;
|
|
|
+ $current['ratio'] = $info['ratio'] ?? 0;
|
|
|
$current['variety'] = $info['variety'] ?? 0;
|
|
|
|
|
|
$current['xhNum'] = $num;
|
|
|
@@ -127,10 +127,10 @@ class OrderItemClass extends BaseClass
|
|
|
$newItem['itemNum'] = $num;
|
|
|
$newItem['preItemNum'] = $num;
|
|
|
$newItem['ghsProductId'] = $ghsProductId;
|
|
|
- $newItem['ratio'] = $thisInfo['ratio'] ?? 0
|
|
|
+ $newItem['ratio'] = $thisInfo['ratio'] ?? 0;
|
|
|
$newItem['price'] = 0;
|
|
|
- $newItem['variety'] = $thisInfo['variety'] ?? 0
|
|
|
- $newItem['unitWeight'] = $thisInfo['weight'] ?? 0
|
|
|
+ $newItem['variety'] = $thisInfo['variety'] ?? 0;
|
|
|
+ $newItem['unitWeight'] = $thisInfo['weight'] ?? 0;
|
|
|
$newItem['xhNum'] = $num;
|
|
|
$newItem['xhUnitName'] = $thisInfo['bigUnit'] ?? '';
|
|
|
$newItem['xhUnitType'] = 0;
|