Browse Source

脚本优化

wufeng 2 years ago
parent
commit
aecba8f705
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/command/ImportOrderFromCHandleData.php

+ 4 - 2
app/command/ImportOrderFromCHandleData.php

@@ -342,7 +342,8 @@ class ImportOrderFromCHandleData extends Command
                                     "order_type" => 'CKD',
                                     "order_code" => $outCode,//出库单号
                                     "order_id" => 0,
-                                    "order_status" => 0,"before_status" => 0
+                                    "order_status" => 0,
+                                    "before_status" => 0
                                 ]);
                             }
                         } else throw new Exception('发货地址添加失败');
@@ -476,7 +477,8 @@ class ImportOrderFromCHandleData extends Command
                 "order_type" => 'CGD',
                 "order_code" => $cg['cgdNo'],//销售单code
                 "order_id" => $up,
-                "order_status" => $cg['status']
+                "order_status" => $cg['status'],
+                "before_status" => 0
             ]);
 
             $rela = [