Commit 8a71eebd by 799284587@qq.com

排序规则

parent 20b07b6f
...@@ -63,7 +63,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type) ...@@ -63,7 +63,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
}; };
var obj = keyValues2.First(t => t.type == type); var obj = keyValues2.First(t => t.type == type);
conpute = _perforRescomputeRepository.GetEntities(t => t.AllotID == allotId && t.AccountType == obj.accounttype.ToString()) conpute = _perforRescomputeRepository.GetEntities(t => t.AllotID == allotId && t.AccountType == obj.accounttype.ToString())
?.OrderBy(t => t.AccountingUnit).ThenBy(t => t.FitPeople).ToList(); ?.OrderBy(t => t.AccountingUnit).ThenBy(t => t.FitPeople).ThenByDescending(t => t.RealGiveFee).ToList();
} }
else if ((new int[] { 4, 5 }).Contains(type)) else if ((new int[] { 4, 5 }).Contains(type))
{ {
...@@ -77,7 +77,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type) ...@@ -77,7 +77,7 @@ public List<ResComputeResponse> GetCompute(int allotId, int type)
var dept = new string[] { AccountUnitType.临床科室.ToString(), AccountUnitType.医技科室.ToString() }; var dept = new string[] { AccountUnitType.临床科室.ToString(), AccountUnitType.医技科室.ToString() };
conpute = _perforRescomputeRepository conpute = _perforRescomputeRepository
.GetEntities(t => t.AllotID == allotId && dept.Contains(t.AccountType) && obj.accounttype.Contains(t.FitPeople)) .GetEntities(t => t.AllotID == allotId && dept.Contains(t.AccountType) && obj.accounttype.Contains(t.FitPeople))
?.OrderBy(t => t.AccountingUnit).ThenBy(t => t.FitPeople).ToList(); ?.OrderBy(t => t.AccountingUnit).ThenBy(t => t.FitPeople).ThenByDescending(t => t.RealGiveFee).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