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/BaseMaterialInfoServices.cs

39 lines
1.4 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 BaseMaterialInfoServices : BaseServices<BaseMaterialInfo>, IBaseMaterialInfoServices
{
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(BaseMaterialInfoServices));
private readonly IBaseRepository<BaseMaterialInfo> _dal;
private readonly IBaseMaterialInfoRepository _baseMaterialInfoRepository;
public BaseMaterialInfoServices(IBaseRepository<BaseMaterialInfo> dal, IBaseMaterialInfoRepository baseMaterialInfoRepository)
{
this._dal = dal;
base.BaseDal = dal;
_baseMaterialInfoRepository = baseMaterialInfoRepository;
}
/// <summary>
/// 1.查出BASE_MATERIALINFO中存在的成品类型
/// </summary>
public async Task<List<BaseMaterialInfo>> query()
{
List<BaseMaterialInfo> list = await _baseMaterialInfoRepository.QueryAsync(x => x.MaterialType == "FERT");
return list;
}
}
}