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 TemperatureHistoryServices : BaseServices, ITemperatureHistoryServices { private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(TemperatureHistoryServices)); private readonly IBaseRepository _dal; private readonly ITemperatureHistoryRepository _temperatureHistoryRepository; public TemperatureHistoryServices(IBaseRepository dal, ITemperatureHistoryRepository temperatureHistoryRepository) { this._dal = dal; base.BaseDal = dal; _temperatureHistoryRepository = temperatureHistoryRepository; } /// /// 传递时间时间 调用存储过程 获取测温历史记录 /// /// 开始时间 /// public List QueryTemperatureHistory(DateTime startTime) { return _temperatureHistoryRepository.QueryTemperatureHistory(startTime); } /// /// 传递条码 调用存储过程 获取测温历史记录 /// /// 条码 /// public List QueryTemperatureHistory(string barCode) { return _temperatureHistoryRepository.QueryTemperatureHistory(barCode); } } }