using Admin.Core.IRepository; using Admin.Core.IService; using Admin.Core.IService.IService_New; using Admin.Core.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Admin.Core.Service.Service_New { public class Hw_BarrelServices : BaseServices, IHw_BarrelServices { private readonly IBaseRepository _dal; public Hw_BarrelServices(IBaseRepository dal) { this._dal = dal; base.BaseDal = dal; } public string GetPlanIdByBarrelID(string barrelBarcode) { try { string planId = _dal.Query(x => x.BarCode == barrelBarcode).FirstOrDefault().PlanId.ToString(); return planId; } catch { throw; } } } }