You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AUCMA_SCADA/Admin.Core.Service/Service_New/BaseQualityInspectionItemIn...

42 lines
1.6 KiB
C#

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