调整基类更新后置方法&&增加转交、业务单详情

This commit is contained in:
mzl
2025-09-24 15:24:29 +08:00
parent 8f2c47d8cb
commit 07af16ed9d
6 changed files with 173 additions and 10 deletions
@@ -114,6 +114,7 @@ class ApprovalRecordsController extends BaseController
'biz_id' => $record['instance']['biz_id'],
'biz_desc' => '业务单号【'.$record['instance']['bizInfo']['order_no'].'】',
'biz_type' => $record['instance']['flow_type'],
'flow_type' => $record['instance']['flow_type'],
'initiator_name' => $record['instance']['initiator']['name'],
'initiator_avatar' => $record['instance']['initiator']['avatar'],
@@ -139,4 +140,33 @@ class ApprovalRecordsController extends BaseController
}
return $data;
}
public function businessOrder(Request $request)
{
try {
$raw = $this->service->serviceBusinessOrder($request, $request->all());
$data = $this->transformData($raw, method_exists($this, 'borderFormat')
? [$this, 'borderFormat']
: null);
return $this->success($data);
} catch (\Throwable $e) {
return $this->error($e->getMessage());
}
}
public function transferApproval(Request $request)
{
try {
$raw = $this->service->transferApproval($request, $request->all());
$data = $this->transformData($raw, method_exists($this, 'transferFormat')
? [$this, 'transferFormat']
: null);
return $this->success($data);
} catch (\Throwable $e) {
return $this->error($e->getMessage());
}
}
}