|
@@ -17,7 +17,7 @@ class Model_job_get3pewaybillid extends Lin_Model {
|
|
|
$where = "express = 76 and librarytime <= ".$start_time." ";
|
|
|
$fields = "id,number,waybill,waybillid,librarytime,express";
|
|
|
|
|
|
- // $this->do_dlz($where,$fields);
|
|
|
+ $this->do_dlz($where,$fields);
|
|
|
$this->do_tt($where,$fields);
|
|
|
$this->do_amz($where,$fields);
|
|
|
$this->do_smt($where,$fields);
|
|
@@ -37,14 +37,6 @@ class Model_job_get3pewaybillid extends Lin_Model {
|
|
|
|
|
|
private function do_tt($where,$fields){
|
|
|
$list = $this->fullordertt->find_all($where,$fields);
|
|
|
- echo "<pre>";
|
|
|
- print_r(array_column($list,'id'));
|
|
|
- foreach($list as $item){
|
|
|
- $this->fullorder->save(['waybillid' => ''],$item['id']);
|
|
|
-
|
|
|
- }
|
|
|
- die;
|
|
|
-
|
|
|
foreach($list as $item){
|
|
|
if(empty($item['waybillid'])){
|
|
|
$this->do_final($item,"fullordertt");
|
|
@@ -87,9 +79,5 @@ 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;
|
|
|
}
|
|
|
}
|