Commit 63de1018 by 799284587@qq.com

排序

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