BLL/HStation.BLL.Assets.Core/03-localclient/03-Valve/AssetsValveMain.cs
@@ -1,5 +1,4 @@ using System.Collections.Generic; using Yw.Dto; using Mapster; namespace HStation.CAL.LocalClient { @@ -76,8 +75,6 @@ #endregion Query #region Insert /// <summary> @@ -113,7 +110,13 @@ { return await Task.Factory.StartNew(() => { return false; var list = inputList.Select(x => x.Adapt<AddAssetsValveMainInput, Model.AssetsValveMain>()).ToList(); list.ForEach(x => { x.SortCode = _service.GetMaxSortCode(x.SeriesID) + 1 + list.IndexOf(x); }); var bol = _service.Inserts(list); return bol; }); } @@ -320,6 +323,5 @@ } #endregion Delete } }