update
This commit is contained in:
parent
98ae69a8d6
commit
70380e97a8
@ -740,10 +740,14 @@
|
||||
if(empty($data)){
|
||||
return $this->success('申请信息不存在');
|
||||
}
|
||||
if($data['check_status'] !== 2){
|
||||
return $this->success('当前申请未审核通过');
|
||||
if($data['check_status'] < 5){
|
||||
return $this->success('当前申请未开票');
|
||||
}
|
||||
if($data['check_status']==5){
|
||||
$res = Db::name('oa_invoice')->where('id',$params['id'])->update(['check_status'=>10]);
|
||||
}else{
|
||||
$res = Db::name('oa_invoice')->where('id',$params['id'])->update(['check_status'=>5]);
|
||||
}
|
||||
$res = Db::name('oa_invoice')->where('id',$params['id'])->update(['check_status'=>10]);
|
||||
return $res ? $this->success('ok') : $this->fail('fail');
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user