审核回调

This commit is contained in:
2025-03-27 15:16:02 +08:00
parent 935351d4fc
commit 3b5aa3cb42
2 changed files with 16 additions and 0 deletions

View File

@ -91,6 +91,14 @@ class Approval extends Auth
}
}
}
if ($instance->status === 1) {
// 工单通过
if ($instance->type === "YSSH") {
// 验收通过
$instance->ticket->is_finished = 1;
$instance->ticket->save();
}
}
$instance->save();
Model::mk()->commit();
} catch (HttpResponseException $e) {

View File

@ -166,6 +166,14 @@ class ApprovalInstance extends Controller
}
}
}
if ($instance->status === 1) {
// 工单通过
if ($instance->type === "YSSH") {
// 验收通过
$instance->ticket->is_finished = 1;
$instance->ticket->save();
}
}
$instance->save();
Model::mk()->commit();
} catch (HttpResponseException $e) {