family 1 год назад
Родитель
Сommit
a91e239834
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/common/repositories/store/product/ProductRepository.php

+ 2 - 2
app/common/repositories/store/product/ProductRepository.php

@@ -428,8 +428,8 @@ class ProductRepository extends BaseRepository
428
                         "share_num"     => 0,
428
                         "share_num"     => 0,
429
                         "stock_num"     => 0,
429
                         "stock_num"     => 0,
430
                         "shares_num"    => 0,
430
                         "shares_num"    => 0,
431
+                        'gong_mer_profit' => $value['gong_mer_profit'] ?? 0.00,
431
                         'gong_market_price' => $value['gong_market_price'] ?? 0.00,
432
                         'gong_market_price' => $value['gong_market_price'] ?? 0.00,
432
-                        'gong_mer_price' => $value['gong_mer_price'] ?? 0.00,
433
                         'plate_mer_profit' => $value['plate_mer_profit'] ?? 0.00,
433
                         'plate_mer_profit' => $value['plate_mer_profit'] ?? 0.00,
434
                     ];
434
                     ];
435
                 } else {
435
                 } else {
@@ -455,8 +455,8 @@ class ProductRepository extends BaseRepository
455
                         "share_num"     => (isset($value['share_num']) && $value['share_num'] !== '') ? $value['share_num'] : 0,
455
                         "share_num"     => (isset($value['share_num']) && $value['share_num'] !== '') ? $value['share_num'] : 0,
456
                         "stock_num"     => (isset($value['stock_num']) && $value['stock_num'] !== '') ? $value['stock_num'] : 0,
456
                         "stock_num"     => (isset($value['stock_num']) && $value['stock_num'] !== '') ? $value['stock_num'] : 0,
457
                         "shares_num"    => (isset($value['shares_num']) && $value['shares_num'] !== '') ? $value['shares_num'] : 0,
457
                         "shares_num"    => (isset($value['shares_num']) && $value['shares_num'] !== '') ? $value['shares_num'] : 0,
458
+                        'gong_mer_profit' => $value['gong_mer_profit'] ?? 0.00,
458
                         'gong_market_price' => $value['gong_market_price'] ?? 0.00,
459
                         'gong_market_price' => $value['gong_market_price'] ?? 0.00,
459
-                        'gong_mer_price' => $value['gong_mer_price'] ?? 0.00,
460
                         'plate_mer_profit' => $value['plate_mer_profit'] ?? 0.00,
460
                         'plate_mer_profit' => $value['plate_mer_profit'] ?? 0.00,
461
                     ];
461
                     ];
462
                 }
462
                 }