From f4ba883eebfeb2bb152686d7fca21326b3db3da8 Mon Sep 17 00:00:00 2001 From: Marvin Date: Fri, 15 Apr 2022 17:28:24 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=B5=81=E7=A8=8B=E8=B5=84?= =?UTF-8?q?=E6=96=99=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD=EF=BC=88=E5=90=8C?= =?UTF-8?q?=E6=AD=A5RULE=5FID=E5=A2=9E=E5=8A=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Controllers/BASController.cs | 2 +- AMESCoreStudio.WebApi/Controllers/BAS/FlowRulesController.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AMESCoreStudio.Web/Controllers/BASController.cs b/AMESCoreStudio.Web/Controllers/BASController.cs index cdb99f89..aa2d929d 100644 --- a/AMESCoreStudio.Web/Controllers/BASController.cs +++ b/AMESCoreStudio.Web/Controllers/BASController.cs @@ -1167,7 +1167,7 @@ namespace AMESCoreStudio.Web.Controllers } else { - if (result.Errors.Count > 0) + if (result.Errors!=null) { ModelState.AddModelError(result.Errors[0].Id, result.Errors[0].Msg); } diff --git a/AMESCoreStudio.WebApi/Controllers/BAS/FlowRulesController.cs b/AMESCoreStudio.WebApi/Controllers/BAS/FlowRulesController.cs index 7cbbba8b..0f31adec 100644 --- a/AMESCoreStudio.WebApi/Controllers/BAS/FlowRulesController.cs +++ b/AMESCoreStudio.WebApi/Controllers/BAS/FlowRulesController.cs @@ -238,6 +238,7 @@ namespace AMESCoreStudio.WebApi.Controllers.BAS { Rules rules = new Rules(); rules = copyRules[j]; + rules.RuleID = helper.GetIDKey("RULE_ID").Result; rules.RuleStationID = ruleStationId; rules.CreateDate = DateTime.Now; rules.CreateUserId = flowRule.CreateUserId;