wugg il y a 6 mois
Parent
commit
bb42220f6a
2 fichiers modifiés avec 8 ajouts et 4 suppressions
  1. 0 2
      app/command/Report.php
  2. 8 2
      app/command/handleCxData.php

+ 0 - 2
app/command/Report.php

@@ -1333,8 +1333,6 @@ class Report extends Command
 		$list =$Db->name('good_basic')->alias('a')
 		->leftJoin('good_stock b','a.spuCode = b.spuCode')
 		->leftJoin('warehouse_info c','b.wsm_code = c.wsm_code')
-//		->leftJoin('purchease_order d','d.spuCode = a.spuCode  and d.wsm_code = b.wsm_code AND d.is_del = 0')
-//		->leftJoin('purchease e','e.bk_code = d.bkcode AND e.is_del = 0 ')
 		->field("a.spuCode 产品编码,
 			a.good_name 商品名称,
 			0 单日订单发货数量,

+ 8 - 2
app/command/handleCxData.php

@@ -291,6 +291,7 @@ class handleCxData extends command
 							    'sendStatus'=>$data['send_status'] ,//发货状态,
 							    'pay_status'=>$data['total_price'] == 0 ? 3 : 1 ,//收款状态,1未付,2部分,3完结
 							    'inv_status'=>$data['total_price'] == 0 ? 3 : 1 ,//开票状态,,1未付,2部分,3完结
+							    "status"=>$this->GetStatus($data['platform_id'],$data['order_source'],$data['supplierNo']),
 							    'remark'=>'' ,//备注,
 							    'cxCode'=>$data['oldCode'] ?? '' ,//备注,
 							    'diff_weight'=>$data['diff_weight'] ,//工差重量,
@@ -309,7 +310,6 @@ class handleCxData extends command
 							    'pay_tag'=>0 ,//回款标签,
 							    'inv_tag_fee'=>0 ,//开票票标签金额,
 							    'pay_tag_fee'=>0 ,//回款标签金额,
-
 						    ];
 					    }
 						if($data['cgdNo']!=''){
@@ -566,6 +566,7 @@ class handleCxData extends command
 							    'remark'=>'' ,//备注',
 							    'pay_status'=>$data['total_fee'] == 0 ? 3 : 1 ,//付款情况',
 							    'inv_status'=>$data['total_fee'] == 0 ? 3 : 1 ,//开票情况',
+							     'status'=>$this->GetStatus($data['platform_id']??0,$data['order_source'],$data['companyNo']),
 							    'diff_weight'=>$data['diff_weight'] ,//工差重量',
 							    'diff_fee'=>$data['diff_fee'] ,//工差金额',
 							    'thNum'=>$data['th_num'] ,//退货数量',
@@ -605,5 +606,10 @@ class handleCxData extends command
 	    Cache::store('redis')->set('JsHandle',0,180);
 		Db::rollback();
     }
-    
+
+
+    private function GetStatus($platform_id,$source,$companyNo){
+        //元隆 采销导入渠道 结算单E企购 平台数据导入
+       return ($platform_id == 77 && $source == 9 && $companyNo =='GS2404151642335170')?2:0;
+    }
 }