|
@@ -37,12 +37,13 @@ class Model_job_get3pewaybillid extends Lin_Model {
|
|
|
|
|
|
private function do_tt($where,$fields){
|
|
|
$list = $this->fullordertt->find_all($where,$fields);
|
|
|
- echo "<pre>";
|
|
|
- print_r($list) ;
|
|
|
- die;
|
|
|
+ echo "<pre>";
|
|
|
+ print_r(array_column($list,'id'));
|
|
|
+ die;
|
|
|
+
|
|
|
foreach($list as $item){
|
|
|
if(empty($item['waybillid'])){
|
|
|
- $this->do_final($item,"fullorder");
|
|
|
+ $this->do_final($item,"fullordertt");
|
|
|
}else{
|
|
|
continue;
|
|
|
}
|
|
@@ -54,7 +55,7 @@ class Model_job_get3pewaybillid extends Lin_Model {
|
|
|
|
|
|
foreach($list as $item){
|
|
|
if(empty($item['waybillid'])){
|
|
|
- $this->do_final($item,"fullorder");
|
|
|
+ $this->do_final($item,"fullorderamz");
|
|
|
}else{
|
|
|
continue;
|
|
|
}
|
|
@@ -65,7 +66,7 @@ class Model_job_get3pewaybillid extends Lin_Model {
|
|
|
|
|
|
foreach($list as $item){
|
|
|
if(empty($item['waybillid'])){
|
|
|
- $this->do_final($item,"fullorder");
|
|
|
+ $this->do_final($item,"fullordersmt");
|
|
|
}else{
|
|
|
continue;
|
|
|
}
|
|
@@ -82,5 +83,9 @@ class Model_job_get3pewaybillid extends Lin_Model {
|
|
|
$this->$table_name->save(['waybillid' => $res['data']['deliveryNo']],$info['id']);
|
|
|
}
|
|
|
}
|
|
|
+ echo "<pre>";
|
|
|
+ print_r($info);
|
|
|
+ print_r($res);
|
|
|
+ die;
|
|
|
}
|
|
|
}
|