update
This commit is contained in:
parent
7722f84bf8
commit
2d65f10046
@ -360,7 +360,7 @@ function daysBetweenDates($start_date,$end_date): bool|int
|
|||||||
return $interval->days;
|
return $interval->days;
|
||||||
}
|
}
|
||||||
|
|
||||||
function addApprove($title,$content_id,$content_model,$content_logic,$patah,$flow_type_id,$flow_id,$create_user_id){
|
function addApprove($title,$content_id,$content_model,$content_logic,$path,$flow_type_id,$flow_id,$create_user_id){
|
||||||
$createUser = Admin::field('name,dept_id')->where('id',$create_user_id)->findOrEmpty();
|
$createUser = Admin::field('name,dept_id')->where('id',$create_user_id)->findOrEmpty();
|
||||||
//获取审批流程信息
|
//获取审批流程信息
|
||||||
$flowData = Flow::where('id',$flow_id)->findOrEmpty();
|
$flowData = Flow::where('id',$flow_id)->findOrEmpty();
|
||||||
@ -372,7 +372,7 @@ function addApprove($title,$content_id,$content_model,$content_logic,$patah,$flo
|
|||||||
'content_id' => $content_id,
|
'content_id' => $content_id,
|
||||||
'content_model' => $content_model,
|
'content_model' => $content_model,
|
||||||
'content_logic' => $content_logic,
|
'content_logic' => $content_logic,
|
||||||
'path' => $patah,
|
'path' => $path,
|
||||||
'flow_type_id' => $flow_type_id,
|
'flow_type_id' => $flow_type_id,
|
||||||
'flow_id' => $flow_id,
|
'flow_id' => $flow_id,
|
||||||
'create_user' => $create_user_id,
|
'create_user' => $create_user_id,
|
||||||
@ -423,6 +423,7 @@ function addApprove($title,$content_id,$content_model,$content_logic,$patah,$flo
|
|||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
|
dump($e->getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user