dashboard เครื่องราช
This commit is contained in:
parent
0d6b4bee62
commit
e5af4a3513
1 changed files with 2 additions and 1 deletions
|
|
@ -861,7 +861,8 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
.ToListAsync();
|
||||
var allUserUser = await _context.InsigniaRequests
|
||||
.Where(x => x.Period == insigniaPeriod)
|
||||
.Select(x => x.RequestProfiles.Count())
|
||||
.Where(x => RoleAdmin == true ? x.RequestStatus == "st5" : (RoleInsignia2 == true ? (x.RequestStatus == "st3" || x.RequestStatus == "st4") : x.Id != null))
|
||||
.Select(x => x.RequestProfiles.Count(x => x.Status != "DELETE" && x.Status != "REJECT"))
|
||||
.SumAsync();
|
||||
|
||||
return Success(new { OrgAllCount = orgAllCount.Count(), OrgSendCount = orgAllCount.Where(x => x.RequestStatus != "st1" && x.RequestStatus != "st2").Count(), OrgNoSendCount = orgAllCount.Where(x => x.RequestStatus == "st1" && x.RequestStatus == "st2").Count(), AllUserUser = allUserUser });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue