更新审批记录

This commit is contained in:
yaooo 2023-11-18 17:42:21 +08:00
parent 67f657f975
commit b43acb53b1
1 changed files with 10 additions and 1 deletions

View File

@ -605,8 +605,17 @@ class Common extends ApiController
} }
//获取审核流程节点 //获取审核流程节点
public function get_flow_nodes($id=0,$type=1) public function get_flow_nodes()
{ {
$param = get_params();
if (empty($param['id'])) {
$this->apiError("审批流程id不能为空");
}
if (empty($param['type'])) {
$this->apiError("审批流程type不能为空");
}
$id = $param['id'];
$type = $param['type'];
$flows = Db::name('FlowStep')->where(['action_id'=>$id,'type'=>$type,'delete_time'=>0])->order('sort asc')->select()->toArray(); $flows = Db::name('FlowStep')->where(['action_id'=>$id,'type'=>$type,'delete_time'=>0])->order('sort asc')->select()->toArray();
foreach ($flows as $key => &$val) { foreach ($flows as $key => &$val) {
$user_id_info = Db::name('Admin')->field('id,name,thumb')->where('id','in',$val['flow_uids'])->select()->toArray(); $user_id_info = Db::name('Admin')->field('id,name,thumb')->where('id','in',$val['flow_uids'])->select()->toArray();