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.

37 lines
925 B
C#

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<Hw_Barrel>, IHw_BarrelServices
{
private readonly IBaseRepository<Hw_Barrel> _dal;
public Hw_BarrelServices(IBaseRepository<Hw_Barrel> 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;
}
}
}
}