update
This commit is contained in:
parent
fa291dcd98
commit
71013b56a6
@ -286,12 +286,6 @@
|
||||
if(empty($params['check']) || !in_array($params['check'],[1,2,3])){
|
||||
return $this->fail('审核参数错误');
|
||||
}
|
||||
if(empty($params['content'])){
|
||||
$mes = match ($params['check']){
|
||||
1=>'请填写审核意见',2=>'请填写审核意见',3=>'请填写撤销理由'
|
||||
};
|
||||
return $this->fail($mes);
|
||||
}
|
||||
$data = Db::name('oa_approve')->where('id',$params['id'])->find();
|
||||
if(empty($data)){
|
||||
return $this->fail('数据信息不存在');
|
||||
@ -314,7 +308,7 @@
|
||||
'type' => 1,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
@ -361,7 +355,7 @@
|
||||
'type' => 1,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
@ -480,7 +474,7 @@
|
||||
'type' => 1,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
|
@ -474,12 +474,6 @@
|
||||
if(empty($params['check']) || !in_array($params['check'],[1,2,3])){
|
||||
return $this->fail('审核参数错误');
|
||||
}
|
||||
if(empty($params['content'])){
|
||||
$mes = match ($params['check']){
|
||||
1=>'请填写审核意见',2=>'请填写审核意见',3=>'请填写撤销理由'
|
||||
};
|
||||
return $this->fail($mes);
|
||||
}
|
||||
$data = Db::name('oa_expense')->where('id',$params['id'])->find();
|
||||
if(empty($data)){
|
||||
return $this->fail('数据信息不存在');
|
||||
@ -502,7 +496,7 @@
|
||||
'type' => 2,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
@ -549,7 +543,7 @@
|
||||
'type' => 2,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
@ -668,7 +662,7 @@
|
||||
'type' => 2,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
|
@ -461,12 +461,6 @@
|
||||
if(empty($params['check']) || !in_array($params['check'],[1,2,3])){
|
||||
return $this->fail('审核参数错误');
|
||||
}
|
||||
if(empty($params['content'])){
|
||||
$mes = match ($params['check']){
|
||||
1=>'请填写审核意见',2=>'请填写审核意见',3=>'请填写撤销理由'
|
||||
};
|
||||
return $this->fail($mes);
|
||||
}
|
||||
$data = Db::name('oa_invoice')->where('id',$params['id'])->find();
|
||||
if(empty($data)){
|
||||
return $this->fail('数据信息不存在');
|
||||
@ -489,7 +483,7 @@
|
||||
'type' => 3,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
@ -536,7 +530,7 @@
|
||||
'type' => 3,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
@ -655,7 +649,7 @@
|
||||
'type' => 3,
|
||||
'check_time' => time(),
|
||||
'status' => $params['check'],
|
||||
'content' => $params['content'],
|
||||
'content' => $params['content'] ?? '',
|
||||
'create_time' => time()
|
||||
);
|
||||
Db::name('oa_flow_record')->strict(false)->field(true)->insertGetId($checkData);
|
||||
|
Loading…
x
Reference in New Issue
Block a user