|
|
|
|
@ -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, |
|
|
|
|
|