handsontable录入最近绩效获取BUG修复

parent d1c1322b
...@@ -286,7 +286,7 @@ public HandsonTable GetCollectData(int userId, int allotId, string sheetName) ...@@ -286,7 +286,7 @@ public HandsonTable GetCollectData(int userId, int allotId, string sheetName)
{ {
var allotList = perforPerallotRepository var allotList = perforPerallotRepository
.GetEntities(w => w.HospitalId == allot.HospitalId && states.Contains(w.States)) .GetEntities(w => w.HospitalId == allot.HospitalId && states.Contains(w.States))
?.OrderBy(w => w.Year).ThenBy(w => w.Month).ToList(); ?.OrderBy(w => w.Year).ThenByDescending(w => w.Month).ToList();
allot = allotList?.First(); allot = allotList?.First();
} }
if (allot == null) if (allot == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment