lixiaojun
2024-07-23 a99a3974be061a99d11306e75d9820de59cdc374
Service/HStation.Service.Assets.Core/03-service/03-PumpMain/PumpMain.cs
@@ -1,6 +1,4 @@
using System.Security.Cryptography;
namespace HStation.Service
namespace HStation.Service
{
    /// <summary>
    ///
@@ -197,7 +195,7 @@
        /// <summary>
        /// 插入拓展
        /// </summary>
        public long InsertEx(Model.PumpMain main, Model.PumpGroupAndMainMap map, Model.PumpPartMain part, List<Model.PumpPropContent> content, Model.PumpMainAndPartMap partmap)
        public long InsertEx(Model.PumpMain main, Model.PumpGroupAndMainMap map)
        {
            if (main == null)
            {
@@ -206,15 +204,11 @@
            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IPumpMain>();
            var mainEntity = Model2Entity(main);
            var groupMapEntity = PumpGroupAndMainMap.Model2Entity(map);
            var partEntity = PumpPartMain.Model2Entity(part);
            var contentEntity = PumpPropContent.Model2Entities(content);
            var partmapEntity = PumpMainAndPartMap.Model2Entity(partmap);
            var id = dal.InsertsEx(mainEntity, groupMapEntity, partEntity, contentEntity, partmapEntity);
            var id = dal.InsertsEx(mainEntity, groupMapEntity);
            if (id > 0)
            {
                UpdateCache(id);
                PumpGroupAndMainMap.UpdateCacheByMainID(id);
                // PumpPartMain.Entity2Model
            }
            return id;
        }