|
|
|
|
@ -522,7 +522,8 @@ namespace ATS.NonCustodial.Application.Impl.Business.CaseManagements
|
|
|
|
|
{ |
|
|
|
|
CaseId = caseId.Value, |
|
|
|
|
SupervisorId = csp.SupervisedId, |
|
|
|
|
SupervisorName = csp.SupervisedName |
|
|
|
|
SupervisorName = csp.SupervisedName, |
|
|
|
|
UnitId = GetUnitIdByUserId(csp.SupervisedId) |
|
|
|
|
}); |
|
|
|
|
var dels = new List<long>(); |
|
|
|
|
var list = await _appCaseSupervisorRepository.AsQueryable(false, true).Where(w => w.CaseId == caseId).ToListAsync(); |
|
|
|
|
@ -817,7 +818,8 @@ namespace ATS.NonCustodial.Application.Impl.Business.CaseManagements
|
|
|
|
|
{ |
|
|
|
|
CaseId = caseId.Value, |
|
|
|
|
SupervisorId = csp.SupervisedId, |
|
|
|
|
SupervisorName = csp.SupervisedName |
|
|
|
|
SupervisorName = csp.SupervisedName, |
|
|
|
|
UnitId = GetUnitIdByUserId(csp.SupervisedId) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
var Supervisordata = await _appCaseSupervisorRepository.FindAsync(q => q.CaseId == caseId && sList.Select(q => q.SupervisorId).Contains(q.SupervisorId)); |
|
|
|
|
@ -1933,6 +1935,12 @@ namespace ATS.NonCustodial.Application.Impl.Business.CaseManagements
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
private long GetUnitIdByUserId(long id) |
|
|
|
|
{ |
|
|
|
|
var user = _appuserRepository.AsQueryable().Where(w => w.Id == id).FirstOrDefault(); |
|
|
|
|
return user?.UnitId ?? 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public class Controller : ControllerBase |
|
|
|
|
{ |
|
|
|
|
|