用hql对mysql的数据进行自定义排序,单引号是关键。 order by field(service.status, '11','6','0','3','4','5','9','10'),service.endTime