duheng
2024-12-19 56e4b8aab223072bef1e1749b8ee9e499dd04f83
BLL/HStation.BLL.Assets.Core/03-localclient/12-Compressor/AssetsCompressorMainAndPartMapping.cs
@@ -60,7 +60,7 @@
        {
            return await Task.Factory.StartNew(() =>
            {
                var model = input.Adapt<AddAssetsCompressorMainAndPartMapInput, Model.AssetsCompressorMainAndPartMap>();
                var model = input.Adapt<AddAssetsCompressorMainAndPartMapInput, Model.AssetsCompressorMainAndPartMapping>();
                var id = _service.Insert(model);
                return id;
            });
@@ -73,7 +73,7 @@
        {
            return await Task.Factory.StartNew(() =>
            {
                var list = inputList.Select(x => x.Adapt<AddAssetsCompressorMainAndPartMapInput, Model.AssetsCompressorMainAndPartMap>()).ToList();
                var list = inputList.Select(x => x.Adapt<AddAssetsCompressorMainAndPartMapInput, Model.AssetsCompressorMainAndPartMapping>()).ToList();
                var bol = _service.Inserts(list);
                return bol;
            });
@@ -107,7 +107,7 @@
                    throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} 数据不存在");
                }
                var rhs = new Model.AssetsCompressorMainAndPartMap(model);
                var rhs = new Model.AssetsCompressorMainAndPartMapping(model);
                input.Adapt(rhs);
                var bol = _service.Update(rhs);
                return bol;
@@ -125,7 +125,7 @@
                {
                    return false;
                }
                var list = inputList.Select(x => x.Adapt<UpdateAssetsCompressorMainAndPartMapInput, Model.AssetsCompressorMainAndPartMap>()).ToList();
                var list = inputList.Select(x => x.Adapt<UpdateAssetsCompressorMainAndPartMapInput, Model.AssetsCompressorMainAndPartMapping>()).ToList();
                var bol = _service.Updates(list);
                return bol;
            });