diff --git a/FactorySystemBll/MaterialTeamworkBll.cs b/FactorySystemBll/MaterialTeamworkBll.cs index 1496c03..28aa6ce 100644 --- a/FactorySystemBll/MaterialTeamworkBll.cs +++ b/FactorySystemBll/MaterialTeamworkBll.cs @@ -314,7 +314,8 @@ namespace FactorySystemBll viewList[i].Remove("FTypeID2"); // 更新视图 - db.Updateable(viewList[i]).AS("TFS_ViewMaterial").WhereColumns("FMaterialID").Where(sqlWhere).ExecuteCommand(); + //db.Updateable(viewList[i]).AS("TFS_ViewMaterial").WhereColumns("FMaterialID").Where(sqlWhere).ExecuteCommand(); + db.Updateable(viewList[i]).AS("TFS_ViewMaterial").IgnoreColumns("FID").WhereColumns("FID").ExecuteCommand(); int.TryParse(viewList[i]["FMRP1ProductType"].ToString(), out result); } diff --git a/FactorySystemBll/ViewBll.cs b/FactorySystemBll/ViewBll.cs index 144fcce..4ad9c1c 100644 --- a/FactorySystemBll/ViewBll.cs +++ b/FactorySystemBll/ViewBll.cs @@ -584,7 +584,7 @@ namespace FactorySystemBll } if (viewList[i].ContainsKey("FTypeID2")) viewList[i].Remove("FTypeID2"); - result += db.Updateable(viewList[i]).AS("TFS_ViewMaterial").WhereColumns("FMaterialID").ExecuteCommand(); + result += db.Updateable(viewList[i]).AS("TFS_ViewMaterial").IgnoreColumns("FID").WhereColumns("FID").ExecuteCommand(); } result += UnionModifyData(viewList, "TFS_ViewMaterial", teamId, db, "FMaterialID"); @@ -823,9 +823,8 @@ namespace FactorySystemBll } - - - result += db.Updateable(viewList).AS("TFS_ViewMaterial").WhereColumns("FMaterialID").Where(sqlWhere).ExecuteCommand(); + //result += db.Updateable(viewList).AS("TFS_ViewMaterial").WhereColumns("FMaterialID").Where(sqlWhere).ExecuteCommand(); + result += db.Updateable(viewList).AS("TFS_ViewMaterial").IgnoreColumns("FID").WhereColumns("FID").ExecuteCommand(); result += HalfMaterialUnionModifyData(viewList, "TFS_ViewMaterial", teamId, db, "FMaterialID"); }