fixed:其他任务提交和审批

This commit is contained in:
chenbo 2023-10-20 16:38:16 +08:00
parent 9b498de149
commit 5c1273ba4c

View File

@ -300,7 +300,7 @@ class TaskController extends BaseApiController
$parmas = $this->request->param();
$task = TaskLogic::detail($parmas);
$extend = $task['extend'];
if ($extend['other']['is_commit'] == 1) {
if (isset($extend['other']) && $extend['other']['is_commit'] == 1) {
$approve = Approve::where(['task_id' =>$task['id']])->find();
$task['approve_status'] = $approve['check_status']; //审核状态
$task['deny_notes'] = $approve['remark']; // 拒绝原因
@ -341,7 +341,7 @@ class TaskController extends BaseApiController
$approveModel->other_type = 6;
$approveModel->create_time = time();
$approveModel->update_time = time();
$approveModel->strict(false)->save();
$re = $approveModel->save();
} else {
// 有则更新状态
$approveModel->check_status = 1; // 状态 0待审核,1审核中,2审核通过,3审核不通过,4撤销审核