|
|
@ -172,10 +172,13 @@ namespace SlnMesnac.Repository.service.Impl
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
// plan.StationId == _appConfig.stationId &&
|
|
|
|
var info = base._rep.AsQueryable()
|
|
|
|
var info = base._rep.AsQueryable()
|
|
|
|
.LeftJoin<MesProductOrder>((plan, order) => plan.ProductOrderId == order.ProductOrderId)
|
|
|
|
.LeftJoin<MesProductOrder>((plan, order) => plan.ProductOrderId == order.ProductOrderId)
|
|
|
|
.LeftJoin<BaseMaterialInfo>((plan, order, material) => plan.MaterialId == material.MaterialId)
|
|
|
|
.LeftJoin<BaseMaterialInfo>((plan, order, material) => plan.MaterialId == material.MaterialId)
|
|
|
|
.Where(plan => plan.StationId == _appConfig.stationId && plan.PlanStatus != PlanStatusEnum.已完成)
|
|
|
|
.Where((plan, order) =>
|
|
|
|
|
|
|
|
plan.PlanStatus != PlanStatusEnum.已完成 &&
|
|
|
|
|
|
|
|
(order.DispatchId ==2))
|
|
|
|
.Select((plan, order, material) => new MesProductPlanDto
|
|
|
|
.Select((plan, order, material) => new MesProductPlanDto
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PlanId = plan.PlanId,
|
|
|
|
PlanId = plan.PlanId,
|
|
|
@ -202,7 +205,8 @@ namespace SlnMesnac.Repository.service.Impl
|
|
|
|
MaterialUnitId = material.MaterialUnitId,
|
|
|
|
MaterialUnitId = material.MaterialUnitId,
|
|
|
|
}).ToList();
|
|
|
|
}).ToList();
|
|
|
|
return info;
|
|
|
|
return info;
|
|
|
|
}catch(Exception ex)
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new InvalidOperationException($"获取MES计划详细信息异常:{ex.Message}");
|
|
|
|
throw new InvalidOperationException($"获取MES计划详细信息异常:{ex.Message}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|