bug fix #23

Merged
mengfucius merged 1 commits from zm into master 2 years ago

@ -410,11 +410,11 @@ class Business extends ApiCommon
if (($examineStatus != false && $examineStatus != 'false') || $examineStatus == 1) { if (($examineStatus != false && $examineStatus != 'false') || $examineStatus == 1) {
// 审核判断(是否有符合条件的审批流) // 审核判断(是否有符合条件的审批流)
$examineFlowModel = new \app\admin\model\ExamineFlow(); $examineFlowModel = new \app\admin\model\ExamineFlow();
if (!$examineFlowModel->checkExamine($userInfo['user_id'], 'crm_business')) { if (!$examineFlowModel->checkExamine($userInfo['id'], 'crm_business')) {
return '暂无审批人,无法创建'; return '暂无审批人,无法创建';
} }
//添加审批相关信息 //添加审批相关信息
$examineFlowData = $examineFlowModel->getFlowByTypes($userInfo['user_id'], 'crm_business'); $examineFlowData = $examineFlowModel->getFlowByTypes($userInfo['id'], 'crm_business');
if (!$examineFlowData) { if (!$examineFlowData) {
return '无可用审批流,请联系管理员'; return '无可用审批流,请联系管理员';
} }
@ -422,7 +422,7 @@ class Business extends ApiCommon
//获取审批人信息 //获取审批人信息
if ($examineFlowData['config'] == 1) { if ($examineFlowData['config'] == 1) {
//固定审批流 //固定审批流
$nextStepData = $examineStepModel->nextStepUser($userInfo['user_id'], $examineFlowData['flow_id'], 'crm_business', 0, 0, 0); $nextStepData = $examineStepModel->nextStepUser($userInfo['id'], $examineFlowData['flow_id'], 'crm_business', 0, 0, 0);
$next_user_ids = arrayToString($nextStepData['next_user_ids']) ?: ''; $next_user_ids = arrayToString($nextStepData['next_user_ids']) ?: '';
$check_user_id = $next_user_ids ?: []; $check_user_id = $next_user_ids ?: [];
$data['order_id'] = 1; $data['order_id'] = 1;

Loading…
Cancel
Save