diff --git a/FactorySystemBll/HalfMaterialTeamworkBll.cs b/FactorySystemBll/HalfMaterialTeamworkBll.cs index a80d95c..5e15f0c 100644 --- a/FactorySystemBll/HalfMaterialTeamworkBll.cs +++ b/FactorySystemBll/HalfMaterialTeamworkBll.cs @@ -780,7 +780,7 @@ namespace FactorySystemBll /// 原配方 /// 新配方 /// - public List UpdateFormula(string testCode, string testCode2, string idList="") + public List UpdateFormula(string testCode, string testCode2,int temId, string idList="") { SqlSugarClient db = AppSettingsHelper.GetSqlSugar(); @@ -792,7 +792,7 @@ namespace FactorySystemBll if (string.IsNullOrWhiteSpace(idList)) { - sql = string.Format("update TFS_Material set FTestCode='{0}' WHERE FID in ({1})", testCode2, string.Join(",", ids)); + sql = string.Format("update TFS_Material set FTestCode='{0}' WHERE FID in ({1});update TFS_ViewMaterial set FHalfMaterialTeamID={2} WHERE FMaterialID in ({1})", testCode2, string.Join(",", ids),temId); } else {