duheng
2024-11-27 01d504cdbc69d1ea3c98e49e820ab9d94255ede8
Application/HStation.Application.Assets.Core/01-ProjectProduct/PumpPart_Controller.cs
@@ -1,5 +1,4 @@
using Furion.RemoteRequest;
using HStation.Dto.Assets;
using HStation.Dto.Assets;
namespace HStation.Application
{
@@ -103,7 +102,7 @@
            var partmodel = part.Adapt<AddAssetsPumpPartMainInput, Model.AssetsPumpPartMain>();
            partmodel.SortCode = _service.GetMaxSortCode() + 1;
            var propcontentlistmodel = propcontents.Select(x => x.Adapt<AddAssetsPumpPropContentInput, Model.AssetsPumpPropContent>()).ToList();
            var partmapmodel = partmap.Adapt<AddAssetsPumpMainAndPartMapInput, Model.AssetsPumpMainAndPartMap>();
            var partmapmodel = partmap.Adapt<AddAssetsPumpMainAndPartMapInput, Model.AssetsPumpMainAndPartMapping>();
            var id = _service.InsertEX(partmodel, propcontentlistmodel, partmapmodel);
            return id;
        }