แก้คิวรี่เครื่องราช

This commit is contained in:
Kittapath 2023-10-17 12:39:36 +07:00
parent 862408b289
commit 9379e1b421
2 changed files with 4 additions and 5 deletions

View file

@ -59,7 +59,6 @@ namespace BMA.EHR.Application.Repositories.Reports
var monthDiff = 0;
var dayDiff = 0;
var sb = new StringBuilder();
var zxc = new List<dynamic>();
foreach (var career in careers)
{
if (career.DurationEnd < career.DurationStart)
@ -68,7 +67,6 @@ namespace BMA.EHR.Application.Repositories.Reports
yearDiff = yearDiff + rangeObj.years;
monthDiff = monthDiff + rangeObj.months;
dayDiff = dayDiff + rangeObj.days;
zxc.Add(rangeObj);
}
else
{
@ -76,7 +74,6 @@ namespace BMA.EHR.Application.Repositories.Reports
yearDiff = yearDiff + rangeObj.years;
monthDiff = monthDiff + rangeObj.months;
dayDiff = dayDiff + rangeObj.days;
zxc.Add(rangeObj);
}
if (dayDiff >= 30)
{