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

+ 9 - 2
core/CoreApp/controllers/Aatest.php

@@ -137,10 +137,17 @@ class Aatest extends Start_Controller {
 		$list = $this->fullorder->find_all($where,$fields);
         //echo "<pre>";
 
-
+		$final_list = [];
+        foreach($list as $item){
+            if(empty($item['waybillid'])){
+                $final_list[$item['waybill']] = $item['id'];
+            }else{
+                continue;
+            }
+        }
 
 		echo "<pre>";
-		print_r($list);
+		print_r($final_list);
 		die;
 		echo date("H",time());
 		//$this->job_get3pewaybillid->do_job();