duheng
2024-12-11 9cdc1a0ed62b3672b63f065e2e2a98d46f966430
BLL/HStation.BLL.Assets.Core/03-localclient/12-Compressor/AssetsCompressorCoefficient.cs
@@ -50,6 +50,19 @@
            });
        }
        /// <summary>
        /// 通过 MainID 获取
        /// </summary>
        public async Task<List<AssetsCompressorCoefficientDto>> GetByMainID(long ID)
        {
            return await Task.Factory.StartNew(() =>
            {
                var model = _service.GetAll();
                var select = model.Where(x => x.MainID == ID).ToList();
                return select?.Select(x => new AssetsCompressorCoefficientDto(x)).ToList();
            });
        }
        #endregion Query
        #region Insert