修改仓储
This commit is contained in:
@@ -20,7 +20,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||
{
|
||||
public InspectionService()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
public async Task<PageOutput<GetDataInspectionOutDto>> GetInspectionData(GetDataInspectionDto dto)
|
||||
{
|
||||
@@ -127,39 +127,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||
.WhereIf(dto.SiteId != null, x => x.SiteId == dto.SiteId);
|
||||
#endregion
|
||||
|
||||
#region 测试
|
||||
//var query = from data in _repository.GetQueryable<DataInspection>()
|
||||
|
||||
// join parent in _repository.GetQueryable<DataInspection>() on data.ParentId equals parent.Id into parenttemp
|
||||
// from leftparent in parenttemp.DefaultIfEmpty()
|
||||
// join subjectVisit in _repository.GetQueryable<SubjectVisit>() on data.SubjectVisitId equals subjectVisit.Id into subjectVisittemp
|
||||
|
||||
// from leftsubjectVisit in subjectVisittemp.DefaultIfEmpty()
|
||||
// select new GetDataInspectionOutDto()
|
||||
// {
|
||||
// CreateTime = data.CreateTime,
|
||||
// CreateUserId = data.CreateUserId,
|
||||
// ModuleType = data.ModuleType,
|
||||
// BlindName = data.BlindName,
|
||||
// TrialId = data.TrialId,
|
||||
// SiteId = data.SiteId,
|
||||
// SubjectId = data.SubjectId,
|
||||
// SubjectVisitId = data.SubjectVisitId,
|
||||
// OptType = data.OptType,
|
||||
// IP = data.IP,
|
||||
// Reason = data.Reason,
|
||||
// IsSign = data.IsSign,
|
||||
// SignId = data.SignId,
|
||||
// ParentId = data.ParentId,
|
||||
// ChildrenType = data.ChildrenType,
|
||||
// JsonDetail = data.JsonDetail,
|
||||
// VisitName = leftsubjectVisit.VisitName,
|
||||
// Id = data.Id,
|
||||
// ParentJson = leftparent.JsonDetail,
|
||||
|
||||
// };
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
dto.Asc = false;
|
||||
return await query.ToPagedListAsync(dto.PageIndex, dto.PageSize, "CreateTime", dto.Asc);
|
||||
|
||||
Reference in New Issue
Block a user