From 675e21e847ee666283d8c8666b4997078253ea10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Tue, 3 Dec 2024 09:31:56 +0800 Subject: [PATCH] 1 --- asg_form/Controllers/auditAndFilingController.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/asg_form/Controllers/auditAndFilingController.cs b/asg_form/Controllers/auditAndFilingController.cs index d8dad6c..bc221e4 100644 --- a/asg_form/Controllers/auditAndFilingController.cs +++ b/asg_form/Controllers/auditAndFilingController.cs @@ -111,7 +111,18 @@ namespace asg_form.Controllers { { au.relative_id = auditinfo.relativeId; } - if (auditinfo.relativeId != null) au.status = "5"; + if (auditinfo.relativeId != null) + { + try + { + var query2 = await sub.T_Comform.FirstOrDefaultAsync(n => n.id == auditinfo.relativeId); + if (query2 != null) query2.status = "5"; + } + catch (Exception ex) + { + return Ok(new { code = 500, message = "服务器错误", ex }); + } + } sub.SaveChanges(); return Ok(new { code = 200, message = "成功修改" }); }