MES.Service/service/BasicData/MesDepotsManager.cs
@@ -89,7 +89,7 @@ // 将 ErpDepots 对象转换为 MesDepots 对象的方法 private MesDepots GetMesDepots(ErpDepots depots) { return new MesDepots var entity = new MesDepots { DepotCode = depots.FNumber, DepotName = depots.FName, @@ -114,6 +114,17 @@ Company = "1000", Factory = "1000" }; var mesDepots = Db.Queryable<MesDepots>() .Where(s => s.DepotCode == entity.DepotCode) .First(); if (mesDepots != null) { entity.DepotId = mesDepots.DepotId; } return entity; } // SaveList 方法用于保存多个仓库记录,根据类型批量执行不同的操作