|
|
@@ -31,13 +31,13 @@ namespace Business.PriorityManagement
|
|
|
level = p.custom_level.GetValueOrDefault()
|
|
|
}).AsQueryable<PriorityDto>().ToList();
|
|
|
|
|
|
- //子表数据处理:根据订单id分组取出客户要求交期交期最大的数据
|
|
|
+ //子表数据处理:根据订单id分组取出客户要求交期交期最小的数据
|
|
|
var entrys = from t in sentrys
|
|
|
group t by t.seorder_id into temp
|
|
|
select new
|
|
|
{
|
|
|
id = temp.Key,
|
|
|
- plan_date = temp.Max(x => x.plan_date.GetValueOrDefault())
|
|
|
+ plan_date = temp.Min(x => x.plan_date.GetValueOrDefault())
|
|
|
};
|
|
|
foreach (var item in dtos)
|
|
|
{
|
|
|
@@ -75,13 +75,13 @@ namespace Business.PriorityManagement
|
|
|
level = p.custom_level.GetValueOrDefault()
|
|
|
}).AsQueryable<PriorityDto>().ToList();
|
|
|
|
|
|
- //子表数据处理:根据订单id分组取出客户要求交期交期最大的数据
|
|
|
+ //子表数据处理:根据订单id分组取出客户要求交期交期最小的数据
|
|
|
var entrys = from t in sentrys
|
|
|
group t by t.seorder_id into temp
|
|
|
select new
|
|
|
{
|
|
|
id = temp.Key,
|
|
|
- plan_date = temp.Max(x => x.plan_date.GetValueOrDefault())
|
|
|
+ plan_date = temp.Min(x => x.plan_date.GetValueOrDefault())
|
|
|
};
|
|
|
foreach (var item in dtos)
|
|
|
{
|