|
@@ -999,6 +999,26 @@ class Systemfout extends Start_Controller {
|
|
|
$outnumber = $this->input->post('outnumber',true);
|
|
|
$post = json_decode($post,true);
|
|
|
$this->$fullorder_name->save($post,$outnumber);
|
|
|
+
|
|
|
+ if($fullorder_name != 'fullorderxw'){
|
|
|
+ // if(($item['warehouse'] != 5) || ($item['warehouse'] != 7) || ($item['warehouse'] != 8) || ($item['warehouse'] != 9) ){
|
|
|
+ // $this->zzquque_u9->insert($item);
|
|
|
+ // }
|
|
|
+ $y = $this->$fullorder_name->read($outnumber);
|
|
|
+ if( !in_array($y['type'],[5,7,8,9]) ){
|
|
|
+ $data = [
|
|
|
+ 'platform'=>$fullorder_name,
|
|
|
+ 'warehouse'=>$y['type'],
|
|
|
+ 'type'=>($y['type'] == 5)?11:10, //5代表美仓
|
|
|
+ 'order_no'=>$y['number'],
|
|
|
+ 'status'=>0,
|
|
|
+ 'create_time'=>time(),
|
|
|
+ 'update_time'=>time(),
|
|
|
+ ];
|
|
|
+ $this->zzquque_u9->insert($data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
public function _fout_db($y,$warehouse,$bdck)//对比占单是否正确
|