From 78de690fdf3324e671e995cfe0bfef6bd2b85167 Mon Sep 17 00:00:00 2001 From: leo <10200039@qq.com> Date: Mon, 22 May 2023 14:38:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9B=BF=E4=BB=A3=E6=96=99?= =?UTF-8?q?=E4=BA=8B=E9=A1=B9=E5=88=9B=E5=BB=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FactorySystemApi/Controllers/ViewController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FactorySystemApi/Controllers/ViewController.cs b/FactorySystemApi/Controllers/ViewController.cs index 68fdb10..d63c258 100644 --- a/FactorySystemApi/Controllers/ViewController.cs +++ b/FactorySystemApi/Controllers/ViewController.cs @@ -238,8 +238,10 @@ namespace FactorySystemApi.Controllers BaseBll.UpdateTeamProcess(teamwork.FID, (int)Constant.ProcessType.成品视图, 2, 1); SqlSugarClient db = AppSettingsHelper.GetSqlSugar(); - List tFS_Materials= db.Queryable().Where(m => m.FTestCode == teamwork.FTestCode).ToList(); - if (tFS_Materials.Count() == 0) + //List TFS_Materials= db.Queryable().Where(m => m.FTestCode == teamwork.FTestCode).ToList(); + // 新试验号时生成替代料事项 + // teamwork的FBomJson字段不为空时判定为新试验号 + if (!string.IsNullOrEmpty(teamwork.FBomJson) && teamwork.FBomJson.Length > 0) { BaseBll.CreateTaskData(teamId, user.FID, "16"); BaseBll.UpdateTeamProcess(teamwork.FID, (int)Constant.ProcessType.替代品确认, 2, 1);