|
|
|
@ -7,7 +7,6 @@ using ATS.NonCustodial.Application.Contracts.Interfaces.Business.AppBusinessAppl |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.AppBusinessApplications.Output; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.AppBusinessApplications.Output; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.AppCaseManagements.AppCaseManagement; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.AppCaseManagements.AppCaseManagement; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.Apps.Output; |
|
|
|
using ATS.NonCustodial.Application.Contracts.Interfaces.Business.Apps.Output; |
|
|
|
using ATS.NonCustodial.Application.Impl.Admins; |
|
|
|
|
|
|
|
using ATS.NonCustodial.Application.Impl.Business.IM; |
|
|
|
using ATS.NonCustodial.Application.Impl.Business.IM; |
|
|
|
using ATS.NonCustodial.Domain.Entities.Admins; |
|
|
|
using ATS.NonCustodial.Domain.Entities.Admins; |
|
|
|
using ATS.NonCustodial.Domain.Entities.Business; |
|
|
|
using ATS.NonCustodial.Domain.Entities.Business; |
|
|
|
@ -26,8 +25,6 @@ using Microsoft.AspNetCore.Mvc; |
|
|
|
using Microsoft.AspNetCore.SignalR; |
|
|
|
using Microsoft.AspNetCore.SignalR; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using NPOI.SS.Formula.Functions; |
|
|
|
|
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
using Yitter.IdGenerator; |
|
|
|
using Yitter.IdGenerator; |
|
|
|
|
|
|
|
|
|
|
|
namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
@ -117,8 +114,17 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
var caseIdList = selectLimits.Select(w => w.CaseId).Distinct().ToList(); |
|
|
|
var caseIdList = selectLimits.Select(w => w.CaseId).Distinct().ToList(); |
|
|
|
|
|
|
|
|
|
|
|
var express = await GetExpression(input, _appBusinessApplicationRepository.AsQueryable(false, true)); |
|
|
|
var express = await GetExpression(input, _appBusinessApplicationRepository.AsQueryable(false, true)); |
|
|
|
|
|
|
|
express = express.Where(w => caseIdList.Contains(w.CaseId)); |
|
|
|
var rtn = await base.GetPageAsync<AppBusinessApplication, AppBusinessApplicationGetPageInput, AppBusinessApplicationListDto>(input, express); |
|
|
|
var rtn = await base.GetPageAsync<AppBusinessApplication, AppBusinessApplicationGetPageInput, AppBusinessApplicationListDto>(input, express); |
|
|
|
rtn.Data = rtn.Data.Where(w => caseIdList.Contains(w.CaseId)).ToList(); |
|
|
|
//rtn.Data = rtn.Data.Where(w => caseIdList.Contains(w.CaseId)).ToList(); |
|
|
|
|
|
|
|
foreach (var item in rtn.Data) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (item.EndSupervisionDate.HasValue) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
item.ActiveTimePeriodBegin = null; |
|
|
|
|
|
|
|
item.ActiveTimePeriodEnd = null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return ResultOutput.Ok(rtn); |
|
|
|
return ResultOutput.Ok(rtn); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|