绩效列表倒序

parent bb7aafec
......@@ -36,8 +36,8 @@ public class AllotService : IAutoInjection
public List<AllotResponse> GetAllotList(int? hospitalId)
{
var allotList = (hospitalId.HasValue && hospitalId.Value > 0)
? _allotRepository.GetEntities(t => t.HospitalId == hospitalId).ToList()
: _allotRepository.GetEntities().ToList();
? _allotRepository.GetEntities(t => t.HospitalId == hospitalId).OrderByDescending(t => t.ID).ToList()
: _allotRepository.GetEntities().OrderByDescending(t => t.ID).ToList();
return Mapper.Map<List<AllotResponse>>(allotList);
}
......
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