浏览代码

提交货物信息

lvhao 2 天之前
父节点
当前提交
17f3c4daa5
共有 1 个文件被更改,包括 22 次插入3 次删除
  1. 22 3
      core/CoreApp/controllers/Aatest.php

+ 22 - 3
core/CoreApp/controllers/Aatest.php

@@ -91,8 +91,27 @@ class Aatest extends Start_Controller {
     public function _remap($arg,$arg_array)
     {  
 
-		
-		//$this->_ttexpress();
+		$tmp_list =  $this->db->get_where('whlabel_bh_scan', [
+            'status'=>1,
+        ])->result_array();
+        $goods_list = [];
+        foreach($tmp_list as $k=>$v){
+            if(isset($goods_list[$v['jm']])){
+                $goods_list[$v['jm']]['dcsl'] += 1;
+            }else{
+                $goods_list[$v['jm']] = [
+                    'jm'=>$v['jm'],
+                    'pm'=>$v['pm'],
+                    'dcsl'=>1,
+                    'final_price'=>1,//让财务录入价格
+                ];
+            }
+        }
+		count($goods_list);
+		die;
+
+
+		//$this->_print();
 		exit('No direct script access allowed');
 		if($arg == 'dayin')
         {
@@ -107,7 +126,7 @@ class Aatest extends Start_Controller {
 
 	private function _ttexpress(){
 		$info = $this->logic_order->getInfo("number = 'TT-KISS-251021-001'");
-		$res = $this->express_tt->getData($info,'FBT');
+		$res = $this->express_tt->get_data($info,'FBT');
 		echo "<pre>";
 		print_r($res);
 	}