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 = "成功修改" }); }