wugg 1 năm trước cách đây
mục cha
commit
7467fbc8fc
1 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 7 7
      app/admin/controller/Filing.php

+ 7 - 7
app/admin/controller/Filing.php

@@ -576,7 +576,7 @@ class Filing extends Base
                 'skuCode' => '',
                 'cat_id' => $filing['cat_id'],
                 'good_name' => $filing['good_name'],
-                'good_num' => $filing['num'],
+                'good_num' => $send_num,
                 'good_type' => 1,
                 'origin_price' => $filing['cgd_charge'],
                 'sale_price' => $filing['price'],
@@ -595,7 +595,7 @@ class Filing extends Base
                 'zxNo' => '',
                 'platform_order' =>$filing['filingCode'],
                 'send_num' => 0,
-                'wsend_num' => $filing['num'],
+                'wsend_num' => $send_num,
                 'th_num' => 0,
                 'th_fee' => 0,
                 'send_status' => 1,
@@ -662,7 +662,7 @@ class Filing extends Base
                 'cgder_id' => $supplier['data']['personid'],
                 'spuCode' => $spuCode,
                 'good_name' => $filing['good_name'],
-                'good_num' => $filing['num'],
+                'good_num' => $send_num,
                 'good_price' => $filing['cgd_charge'],
                 'total_fee' => round(bcmul($filing['cgd_charge'], $filing['num']), 2),
                 'pakge_fee' => $filing['pakge_fee'],
@@ -680,7 +680,7 @@ class Filing extends Base
                 'companyName' => $filing['customerName'],
                 'send_status' => 1,
                 'send_num' => '0',
-                'wsend_num' => $filing['num'],
+                'wsend_num' => $send_num,
                 'remark' => '',
                 'status' => 0,
                 'lasttime' => $date,
@@ -789,10 +789,10 @@ class Filing extends Base
                     'cgdNo' => $cgdCode,
                     'spuCode' => $spuCode,
                     'companyNo' => $filing['customerCode'],
-                    'good_num' => $filing['num'],
-                    'wsend_num' => $filing['num'],
+                    'good_num' => $send_num,
+                    'wsend_num' =>$send_num,
                     'send_num' => 0,
-                    'wait_num' => $filing['num'],
+                    'wait_num' => $send_num,
                 ]);
 			if($gu==false) throw new \Exception('关联表新建失败');
             if ($order_send_insert) Db::name('order_send')->insertAll($order_send_insert);