增加时间轴内容

This commit is contained in:
mzl
2025-09-24 17:43:48 +08:00
parent 2a44802994
commit ad7b42db45
2 changed files with 7 additions and 3 deletions
@@ -176,6 +176,9 @@ class ApprovalRecordsService
public function serviceApprovalTimeline(Request $request, array $data = [])
{
$instance = \app\common\model\ApprovalInstances::where('biz_id', $data['id'])->where('flow_type', $data['flow_type'])->first();
if (!$instance) {
return [];
}
$result = \app\common\model\ApprovalRecords::where('instance_id', $instance->id)->with('approver')->orderBy('id', 'desc')->get();
return $result;
}