hql:from Repair where faultDate between ? and ? order by ? "+order;
Object[] paramList = {dateFrom,dateTo,sort};结果为什么不能排序?
而hql:from Repair where faultDate between ? and ? order by "+sort+" "+order;
Object[] paramList = {dateFrom,dateTo}结果就能排序
难道有空格,没有啊?醉了