第二题:
String hql="select new list(o.customer.name,o.tradeDate,o.status,o.amount) from Order o "
+"where o.tradeDate between '2015-05-01' and '2015-06-01' and o.status in('已发货','已付款') and o.amount>1000 "
+"order by o.status asc,o.tradeDate desc,o.amount desc";
String hql="select new list(o.customer.name,o.tradeDate,o.status,o.amount) from Order o "
+"where o.tradeDate between '2015-05-01' and '2015-06-01' and o.status in('已发货','已付款') and o.amount>1000 "
+"order by o.status asc,o.tradeDate desc,o.amount desc";