fix: sync material tag on report publish

This commit is contained in:
wushumin
2026-06-05 15:42:16 +08:00
parent 65d8f93410
commit ed87ea1541
3 changed files with 122 additions and 8 deletions

View File

@@ -2150,6 +2150,8 @@ class AppraisalTasksController
$verify = $this->createOrUpdateVerifyRecord($report, $now);
if (($report['report_type'] ?? 'appraisal') === 'appraisal' && (int)($report['order_id'] ?? 0) > 0) {
(new MaterialTagService())->syncBoundTagForReport($report, $request);
Db::name('orders')->where('id', (int)$report['order_id'])->update([
'order_status' => 'report_published',
'display_status' => '报告已出具',