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

38 lines
1.3 KiB
C#

using Admin.Core.IRepository;
using Admin.Core.IService;
using Admin.Core.Model;
using Admin.Core.Model.Model_New;
using Admin.Core.Model.ViewModels;
using log4net;
using Microsoft.AspNetCore.Razor.TagHelpers;
using Microsoft.IdentityModel.Logging;
using NPOI.XSSF.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Admin.Core.Service
{
public class TestedCodeMESServices : BaseServices<TestedCode_MES>, ITestedCodeMESServices
{
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(TestedCodeMESServices));
private readonly IBaseRepository<BaseBomInfo> _dal;
private readonly ITestedCodeMESRepository _testedCodeMESRepository;
public TestedCodeMESServices(IBaseRepository<BaseBomInfo> dal, ITestedCodeMESRepository testedCodeMESRepository)
{
this._dal = dal;
_testedCodeMESRepository = testedCodeMESRepository;
}
public List<TestedCode_MES> QueryTemperatureHistory(DateTime time)
{
return _testedCodeMESRepository.QueryTemperatureHistory(time);
}
public int UpateTemperatureHistoryFlag(List<TestedCode_MES> list)
{
return _testedCodeMESRepository.UpateTemperatureHistoryFlag(list);
}
}
}