Browse Source

[MODIFY]文件传输增大接收数,信息弹窗校验

dev-zzj
zhaozhenjing 2 months ago
parent
commit
606b06b05f
  1. 7
      src/2.services/ATS.NonCustodial.Application/Impl/Business/AppManagementService.cs
  2. 7
      src/2.services/ATS.NonCustodial.Application/Impl/Business/AppPunchRecordService.cs
  3. 2
      src/2.services/ATS.NonCustodial.Application/Impl/Business/MaterialManager/AppFileDescriptorService.cs

7
src/2.services/ATS.NonCustodial.Application/Impl/Business/AppManagementService.cs

@ -1149,10 +1149,15 @@ namespace ATS.NonCustodial.Application.Impl.Business
/// <returns></returns>
public async Task<IResultOutput<PagedList<AppRemindListDto>>> GetRemindListByCurrentUserPageAsync(AppRemindPageInput input)
{
var limits = User.limits;
var selectLimits = await _appCaseSupervisorRepository.AsQueryable(false, true)
.Where(w => limits.Contains(w.UnitId.ToString()))
.ToListAsync();
var caseIdList = selectLimits.Select(w => w.CaseId).Distinct().ToList();
//预警信息
var earlyList = await (from e in _appEarlyWarningRepository.AsQueryable(false, true)
join ev in _appEarlyWarningViewStatisticsRepository.AsQueryable(false, true) on e.Id equals ev.AppEarlyWarningId
where ev.SubscriberId == User.Id
where ev.SubscriberId == User.Id && caseIdList.Contains(e.CaseId)
select new AppRemindListDto()
{
Id = e.Id,

7
src/2.services/ATS.NonCustodial.Application/Impl/Business/AppPunchRecordService.cs

@ -415,11 +415,13 @@ namespace ATS.NonCustodial.Application.Impl.Business
[HttpGet, AllowAnonymous]
public async Task<IResultOutput> CheckPunchRecordForJob1()
{
var limits = User.limits;
//[1]获取所有正在执行中的被监管人案件
var allCaseList = await (from c in _appCaseManagementRepository.AsQueryable(false, true)
join csr in _appCaseSupervisorRepository.AsQueryable(false, true) on c.Id equals csr.CaseId
join cspr in _appSupervisedPersonRepository.AsQueryable(false, true) on c.Id equals cspr.CaseId
where c.CaseProgress != CaseProgressEnum.Pending&& c.CaseProgress != CaseProgressEnum.Closed
where c.CaseProgress != CaseProgressEnum.Pending&& c.CaseProgress != CaseProgressEnum.Closed && limits.Contains((char)csr.UnitId)
select new CheckPunchRecordForJobOutput()
{
CaseId = c.Id,
@ -547,11 +549,12 @@ namespace ATS.NonCustodial.Application.Impl.Business
[HttpGet, AllowAnonymous]
public async Task<IResultOutput> CheckPunchRecordForJob()
{
var limits = User.limits;
//[1]获取所有正在执行中的被监管人案件
var allCaseList = await (from c in _appCaseManagementRepository.AsQueryable(false, true)
join csr in _appCaseSupervisorRepository.AsQueryable(false, true) on c.Id equals csr.CaseId
join cspr in _appSupervisedPersonRepository.AsQueryable(false, true) on c.Id equals cspr.CaseId
where c.CaseProgress != CaseProgressEnum.Pending && c.CaseProgress != CaseProgressEnum.Closed && cspr.ApprovalStatus == ApprovalStatusEnum.PassReview
where c.CaseProgress != CaseProgressEnum.Pending && c.CaseProgress != CaseProgressEnum.Closed && cspr.ApprovalStatus == ApprovalStatusEnum.PassReview && limits.Contains(csr.UnitId.ToString())
select new CheckPunchRecordForJobOutput()
{
CaseId = c.Id,

2
src/2.services/ATS.NonCustodial.Application/Impl/Business/MaterialManager/AppFileDescriptorService.cs

@ -146,6 +146,8 @@ namespace ATS.NonCustodial.Application.Impl.Business.MaterialManager
/// <param name="file"></param>
/// <returns></returns>
[HttpPut]
[RequestSizeLimit(200 * 1024 * 1024)] // 200MB
[RequestFormLimits(MultipartBodyLengthLimit = 200 * 1024 * 1024)] // 200MB
public async Task<IResultOutput> UploadFile(long? directoryId, [FromForm] IFormFile file)
{
var uploadConfig = LazyGetRequiredService<UploadConfigConfiguration>();

Loading…
Cancel
Save