浏览代码

订单表,新增活动编码字段

wufeng 2 年之前
父节点
当前提交
2afb1b88d5
共有 3 个文件被更改,包括 6 次插入0 次删除
  1. 1 0
      app/admin/controller/After.php
  2. 4 0
      app/admin/controller/Sale.php
  3. 1 0
      app/command/ImportOrderFromCHandleData.php

+ 1 - 0
app/admin/controller/After.php

@@ -1411,6 +1411,7 @@ class After extends Base
 //                "remark" => $old_sale['remark'] . $old_sale['orderCode'],
 //                "is_stock" => $is_stock,
                 "is_activity" => $is_activity,
+                "activity_code" => $actcode,
 //                "order_type" => $is_stock == 1 ? 1 : 2,
 //                "order_source" => 1,//1直接下单
 //                "poNo"=>$poNo,

+ 4 - 0
app/admin/controller/Sale.php

@@ -228,6 +228,7 @@ class Sale extends Base
                 "remark"=>$remark,
                 "is_stock"=>$is_stock,
                 "is_activity"=>$is_activity===""?0:$is_activity,
+                "activity_code"=>$actcode,
                 "order_type"=>$is_stock==1?1:2,
                 "order_source"=>1,//1直接下单
 //                "poNo"=>$poNo,
@@ -941,6 +942,7 @@ class Sale extends Base
                 "arrive_time"=>$arrtime,
                 "is_stock"=>0,
                 "is_activity"=>0,
+                "activity_code"=>'',
                 "proof_id"=>0,
                 "order_type"=>3,
                 "order_source"=>2,//2咨询
@@ -1445,6 +1447,7 @@ class Sale extends Base
             "remark"=>"",
             "is_stock"=>0,
             "is_activity"=>0,
+            "activity_code"=>'',
             "proof_id"=>0,
             "order_type"=>3,//咨询商品
             "order_source"=>3,//项目
@@ -1714,6 +1717,7 @@ class Sale extends Base
             "remark"=>"",
             "is_stock"=>$good['is_stock'],
             "is_activity"=>0,
+            "activity_code"=>'',
             "proof_id"=>0,
             "order_type"=>$good['is_stock']==1?1:2,//1备库,2非库存品
             'order_source' => 3,//3项目

+ 1 - 0
app/command/ImportOrderFromCHandleData.php

@@ -232,6 +232,7 @@ class ImportOrderFromCHandleData extends Command
                         "remark" => $remark,
                         "is_stock" => $is_stock,
                         "is_activity" => $is_activity === "" ? 0 : $is_activity,
+                        'activity_code' => $extend_data['activity_code'],
                         "order_type" => $order_type,
                         "order_source" => $order_source,
 //                "poNo"=>$poNo,