|
@@ -63,8 +63,6 @@ class Apicjgx extends Start_Controller {
|
|
|
// }
|
|
|
$this->checkCirculat($info,$lbrk[0]);
|
|
|
return ;
|
|
|
- }else{
|
|
|
- $this->cancelWjf($info);
|
|
|
}
|
|
|
|
|
|
//如果是 成品库 布标打印 发块 滞销款 不做处理 再次判定状态是否是 超时一次 超时两次
|
|
@@ -112,26 +110,26 @@ class Apicjgx extends Start_Controller {
|
|
|
|
|
|
}
|
|
|
|
|
|
- public function cancelWjf($info){
|
|
|
- $fid = $info['id'];
|
|
|
- $list = $this->systemtransfer_cr->find_all("fid = ".$fid,"*",'id desc',0,2);
|
|
|
- if(empty($list)){
|
|
|
- return;
|
|
|
- }
|
|
|
- //如果没2条就不执行了 因为
|
|
|
- if(count($list) < 2){
|
|
|
- return ;
|
|
|
- }
|
|
|
- //操作车间一致 就直接返回
|
|
|
- if($list[0]['lx'] == $list[1]['lx']){
|
|
|
- return ;
|
|
|
- }
|
|
|
- if($list[1]['extra_status'] == 1){
|
|
|
- $this->systemtransfer_cr->save([
|
|
|
- 'extra_status'=>0
|
|
|
- ],$list[1]['id']);
|
|
|
- }
|
|
|
- }
|
|
|
+ // public function cancelWjf($info){
|
|
|
+ // $fid = $info['id'];
|
|
|
+ // $list = $this->systemtransfer_cr->find_all("fid = ".$fid,"*",'id desc',0,2);
|
|
|
+ // if(empty($list)){
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // //如果没2条就不执行了 因为
|
|
|
+ // if(count($list) < 2){
|
|
|
+ // return ;
|
|
|
+ // }
|
|
|
+ // //操作车间一致 就直接返回
|
|
|
+ // if($list[0]['lx'] == $list[1]['lx']){
|
|
|
+ // return ;
|
|
|
+ // }
|
|
|
+ // if($list[1]['extra_status'] == 1){
|
|
|
+ // $this->systemtransfer_cr->save([
|
|
|
+ // 'extra_status'=>0
|
|
|
+ // ],$list[1]['id']);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
//如果检测到最后的入库是
|
|
|
/**
|
|
|
* $id 工单主键id
|