修改将plantCode改为planCode

liuwf
1 year ago
parent 78a257ca3c
commit d52934ddb0

Binary file not shown.

Binary file not shown.

@ -56,7 +56,7 @@ namespace Admin.Core.Model
/// 工厂编号
/// </summary>
[SugarColumn(ColumnName = "PLANT_CODE")]
public string plantCode { get; set; }
public string planCode { get; set; }
/// <summary>
/// 产线/工位

@ -14,11 +14,13 @@ namespace Admin.Core.Service.Service_New
{
private readonly IBaseRepository<ProductPlanInfo> _dal;
private readonly IProductOrderInfoRepository _productOrderInfoRepository;
public ProductPlanInfoServices(IBaseRepository<ProductPlanInfo> dal, IProductOrderInfoRepository productOrderInfoRepository)
private readonly IBaseBomInfoRepository _baseBomInfoRepository;
public ProductPlanInfoServices(IBaseRepository<ProductPlanInfo> dal, IBaseBomInfoRepository baseBomInfoRepository)
{
this._dal = dal;
base.BaseDal = dal;
_productOrderInfoRepository = productOrderInfoRepository;
_baseBomInfoRepository = baseBomInfoRepository;
}
/// <summary>
@ -29,7 +31,8 @@ namespace Admin.Core.Service.Service_New
public async Task<List<PlanMaintenanceView>> QueryPlanInfo()
{
List<ProductPlanInfo> planList = await _dal.QueryAsync();
List<ProductOrderInfo> orderinfoList= await _productOrderInfoRepository.QueryAsync();
List<BaseBomInfo> orderinfoList= await _baseBomInfoRepository.QueryAsync();
var list = (from p in planList
join o in orderinfoList on p.PlanCode equals o.PlanCode
select new PlanMaintenanceView
@ -43,11 +46,6 @@ namespace Admin.Core.Service.Service_New
}).ToList();
return list;
//let sum = score.Chinese + score.Math + score.English //定义临时变量sum
//where sum / 3 > 60
//group stu by new { stu.Age } into result
//orderby result.Key.Age descending
//select new { Age = result.Key.Age, Count = result.Count() };
}
}
}

Loading…
Cancel
Save