duheng
2024-10-14 05d57af48f51d2ac8292bc3faaa01ca753763790
Service/HStation.Service.Assets.Core/05-service/01-PumpMainManage/05-PumpPartMain/PumpPartMain.cs
@@ -105,7 +105,7 @@
        /// </summary>
        public List<Model.AssetsPumpPartMain> GetByMainID(long ID)
        {
            var idlist = AssetsPumpMainAndPartMap.GetByPumpMainID(ID);
            var idlist = AssetsPumpMainAndPartMapping.GetByPumpMainID(ID);
            return GetByIds(idlist);
        }
@@ -190,13 +190,13 @@
            var dal = DALCreateHelper.CreateDAL<HStation.DAL.IAssetsPumpPartMain>();
            var partentity = Model2Entity(part);
            var propcontentsentity = AssetsPumpPropContent.Model2Entities(AssetsPumpPropContents);
            var partmapentity = AssetsPumpMainAndPartMap.Model2Entity(partmap);
            var partmapentity = AssetsPumpMainAndPartMapping.Model2Entity(partmap);
            var id = dal.InsertsEx(partentity, propcontentsentity, partmapentity);
            if (id > 0)
            {
                UpdateCache(id);
                AssetsPumpPropContent.UpdateCacheByPartID(id);
                AssetsPumpMainAndPartMap.UpdateCacheByPartID(id);
                AssetsPumpMainAndPartMapping.UpdateCacheByPartID(id);
            }
            return id;
        }