using Admin.Core.IRepository; using Admin.Core.IService; using Admin.Core.Model; using Admin.Core.Model.Model_New; using log4net; using Microsoft.AspNetCore.Razor.TagHelpers; using Microsoft.IdentityModel.Logging; using NPOI.SS.Formula.Functions; using NPOI.XSSF.UserModel; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Admin.Core.Service { public class BaseMaterialInfoServices : BaseServices, IBaseMaterialInfoServices { private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(BaseMaterialInfoServices)); private readonly IBaseRepository _dal; private readonly IBaseMaterialInfoRepository _baseMaterialInfoRepository; public BaseMaterialInfoServices(IBaseRepository dal, IBaseMaterialInfoRepository baseMaterialInfoRepository) { this._dal = dal; base.BaseDal = dal; _baseMaterialInfoRepository = baseMaterialInfoRepository; } /// /// 1.查出BASE_MATERIALINFO中存在的成品类型 /// public async Task> query() { List list = await _baseMaterialInfoRepository.QueryAsync(x => x.MaterialType == "FERT"); return list; } } }