修改焊接接口,
This commit is contained in:
@@ -472,7 +472,9 @@ namespace BLL
|
||||
join n in db.Base_Project on x.ProjectId equals n.ProjectId
|
||||
join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into tt
|
||||
from t in tt.DefaultIfEmpty()
|
||||
select new { x, n, t };
|
||||
join train in db.HJGL_TrainNumberManage on x.TrainNumberId equals train.Id into trains
|
||||
from train in trains.DefaultIfEmpty()
|
||||
select new { x, n, t , train };
|
||||
|
||||
if (filter != null)
|
||||
{
|
||||
@@ -510,7 +512,7 @@ namespace BLL
|
||||
}
|
||||
if (!string.IsNullOrEmpty(filter.ReceiveMan))
|
||||
{
|
||||
baseQuery = baseQuery.Where(z => z.x.ReceiveMan == filter.ReceiveMan || (z.t != null && z.t.PersonName.Contains(filter.ReceiveMan)));
|
||||
baseQuery = baseQuery.Where(z => z.train.ContactName == filter.ReceiveMan || (z.train != null && z.train.ContactName.Contains(filter.ReceiveMan)));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(filter.ReceiveDate))
|
||||
{
|
||||
@@ -524,7 +526,7 @@ namespace BLL
|
||||
}
|
||||
if (!string.IsNullOrEmpty(filter.TrainNumberId))
|
||||
{
|
||||
baseQuery = baseQuery.Where(z => z.x.TrainNumber != null && z.x.TrainNumber.Contains(filter.TrainNumberId));
|
||||
baseQuery = baseQuery.Where(z => z.train.Id != null && z.train.Id.Contains(filter.TrainNumberId));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -540,9 +542,9 @@ namespace BLL
|
||||
ContactPhone = z.x.ContactPhone,
|
||||
StackingPosition = z.x.StackingPosition,
|
||||
State = z.x.State,
|
||||
ReceiveMan = z.t.PersonName,
|
||||
ReceiveMan = z.train.ContactName,
|
||||
ReceiveDate = string.Format("{0:g}", z.x.ReceiveDate),
|
||||
TrainNumber = z.x.TrainNumber,
|
||||
TrainNumber = z.train.TrainNumber,
|
||||
}).Distinct();
|
||||
|
||||
totalCount = q.Count();
|
||||
|
||||
Reference in New Issue
Block a user