调整基类更新后置方法&&增加转交、业务单详情
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user