BLL/HStation.BLL.Assets.Core/03-localclient/20-Translation/AssetsTranslationMain.cs
@@ -1,4 +1,6 @@ namespace HStation.CAL.LocalClient using Mapster; namespace HStation.CAL.LocalClient { /// <summary> /// 换热器型号 @@ -108,7 +110,13 @@ { return await Task.Factory.StartNew(() => { return false; var list = inputList.Select(x => x.Adapt<AddAssetsTranslationMainInput, Model.AssetsTranslationMain>()).ToList(); list.ForEach(x => { x.SortCode = _service.GetMaxSortCode(x.SeriesID) + 1 + list.IndexOf(x); }); var bol = _service.Inserts(list); return bol; }); }