|
|
|
@ -13,17 +13,13 @@ namespace Admin.Core.Service
|
|
|
|
|
public class ProductPlanInfoServices : BaseServices<ProductPlanInfo>, IProductPlanInfoServices
|
|
|
|
|
{
|
|
|
|
|
private readonly IBaseRepository<ProductPlanInfo> _dal;
|
|
|
|
|
private readonly IPrintOrderInfoRepository _printOrderInfoRepository;
|
|
|
|
|
private readonly IBaseOrderInfoRepository _baseOrderInfoRepository;
|
|
|
|
|
private readonly IBaseBomInfoRepository _baseBomInfoRepository;
|
|
|
|
|
|
|
|
|
|
public ProductPlanInfoServices(IBaseRepository<ProductPlanInfo> dal, IBaseBomInfoRepository baseBomInfoRepository, IBaseOrderInfoRepository baseOrderInfoRepository, IPrintOrderInfoRepository printOrderInfoRepository)
|
|
|
|
|
public ProductPlanInfoServices(IBaseRepository<ProductPlanInfo> dal, IBaseOrderInfoRepository baseOrderInfoRepository)
|
|
|
|
|
{
|
|
|
|
|
this._dal = dal;
|
|
|
|
|
base.BaseDal = dal;
|
|
|
|
|
_baseBomInfoRepository = baseBomInfoRepository;
|
|
|
|
|
_baseOrderInfoRepository = baseOrderInfoRepository;
|
|
|
|
|
_printOrderInfoRepository = printOrderInfoRepository;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 查询计划执行信息
|
|
|
|
@ -31,10 +27,9 @@ namespace Admin.Core.Service
|
|
|
|
|
/// 查询计划执行信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
|
|
|
public async Task<List<PlanMaintenanceView>> QueryPlanInfo(string station)
|
|
|
|
|
{
|
|
|
|
|
List<ProductPlanInfo> planList = await _dal.QueryAsync(d=>d.ProductLineCode== station);
|
|
|
|
|
List<ProductPlanInfo> planList = await _dal.QueryAsync(d => d.ProductLineCode == station);
|
|
|
|
|
|
|
|
|
|
var list = (from p in planList
|
|
|
|
|
select new PlanMaintenanceView
|
|
|
|
|