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 BaseQualityInspectionItemInfoServices : BaseServices, IBaseQualityInspectionItemInfoServices { private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(BaseQualityInspectionItemInfoServices)); private readonly IBaseRepository _dal; private readonly IBaseQualityInspectionItemInfoRepository _baseQualityInspectionItemInfoRepository; public BaseQualityInspectionItemInfoServices(IBaseRepository dal, IBaseQualityInspectionItemInfoRepository baseQualityInspectionItemInfoRepository) { this._dal = dal; base.BaseDal = dal; _baseQualityInspectionItemInfoRepository = baseQualityInspectionItemInfoRepository; } /// /// 查出BaseQualityInspectionItemInfo中父级id为0且启用标识0的质检项 /// public async Task> query() { List list = await _baseQualityInspectionItemInfoRepository.QueryAsync(x => x.IsFlag == 0); return list; } } }