'开始', 'approval' => '审批', 'end' => '结束', ); } /** * 获取审批人类型列表 * * @return array */ public function getAssigneeTypes() { return array( 'user' => '用户', //'role' => '角色', //'dept' => '部门', ); } /** * 获取模板的下一个节点顺序号 * * @param int $template_id * @return int */ public function getNextStepOrder($template_id) { $maxOrder = $this->getList('MAX(step_order) as max_order', array('template_id' => $template_id)); return isset($maxOrder[0]['max_order']) ? $maxOrder[0]['max_order'] + 1 : 1; } }