fix bugs รายงานแบบย่อแสดงผล error

This commit is contained in:
Suphonchai Phoonsawat 2023-05-11 11:38:43 +07:00
parent 2f3a07d6cd
commit 39cebf60fa

View file

@ -74,8 +74,8 @@ namespace BMA.EHR.Report.Service.Controllers
{
try
{
var profile_salaries = (from ps in _context.ProfileSalaries.ToList()
join pos in _context.PositionPaths.ToList()
var profile_salaries = (from ps in _context.ProfileSalaries
join pos in _context.PositionPaths
on ps.PositionId equals pos.Id
where ps.Profile.Id == id
select new
@ -493,7 +493,7 @@ namespace BMA.EHR.Report.Service.Controllers
OcFullPath = profile2.OcFullPath
}).ToList();
while (salary.Count < 20)
while (salary.Count < 1)
{
salary.Add(new
{