Commit 8957169e by 李承祥

绩效发放根据核算单元排序(正序),全院绩效倒序(核算单元可为空)

parent d231caca
...@@ -54,12 +54,13 @@ public List<res_compute> GetCompute(int allotId, int type) ...@@ -54,12 +54,13 @@ public List<res_compute> GetCompute(int allotId, int type)
if (keyValues.ContainsKey(type)) if (keyValues.ContainsKey(type))
{ {
var conList = keyValues[type].Select(t => EnumHelper.GetDescription(t)); var conList = keyValues[type].Select(t => EnumHelper.GetDescription(t));
list = _perforRescomputeRepository.GetEntities(t => t.AllotID == allotId && conList.Contains(t.FitPeople)); list = _perforRescomputeRepository.GetEntities(t => t.AllotID == allotId && conList.Contains(t.FitPeople))
.OrderBy(t => t.AccountingUnit).ThenBy(t => t.FitPeople).ToList();
} }
else if (type == 99) else if (type == 99)
{ {
list = _perforRescomputeRepository.GetEntities(t => t.AllotID == allotId) list = _perforRescomputeRepository.GetEntities(t => t.AllotID == allotId)
.OrderByDescending(t => t.FitPeople).ThenBy(t => t.AccountingUnit).ToList(); .OrderByDescending(t => t.AccountingUnit).ThenBy(t => t.FitPeople).ToList();
} }
else else
{ {
......
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